public class ParameterInfo
Object
ParameterInfo
mscorlib
Reflection
Provides access to parameter metadata.
System.Reflection Namespace
ParameterInfo Constructors
ParameterInfo Properties
ParameterInfo.Attributes Property
ParameterInfo.Name Property
ParameterInfo.ParameterType Property
protected ParameterInfo();
Constructs a new instance of the ParameterInfo class.
This constructor is called only by classes that derive fromParameterInfo
.
System.Reflection.ParameterInfo Class, System.Reflection Namespace
public virtual ParameterAttributes Attributes { get; }
Gets the attributes of the parameter reflected by the current instance.
A ParameterAttributes value representing the attributes for the parameter reflected by the current instance.
[Behaviors: This property is read-only.]
System.Reflection.ParameterInfo Class, System.Reflection Namespace
public virtual string Name { get; }
Gets the name of the parameter reflected by the current instance.
A String that contains the name of the parameter reflected by the current instance.
This property returns the name of the parameter reflected by the current instance as that name is declared in the signature of the method that contains the parameter. [Note: For example, if a method signature isvoid MyMethod(object MyParm)
, the System.Reflection.ParameterInfo.Name property value would be "MyParm".]
[Behaviors: This property is read-only.]
System.Reflection.ParameterInfo Class, System.Reflection Namespace
public virtual Type ParameterType { get; }
Gets the type of the parameter reflected by the current instance.
The Type of the parameter reflected by the current instance.
This property returns the type declared for the property. [Note: For example, if a method signature isvoid MyMethod(object MyParm)
, the System.Reflection.ParameterInfo.ParameterType property value would be a Type object representing the Object type.]
[Behaviors: This property is read-only.]
System.Reflection.ParameterInfo Class, System.Reflection Namespace