System.Reflection.ParameterInfo Members

The members of System.Reflection.ParameterInfo are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the ParameterInfo class.

Protected Fields

AttrsImplParameterAttributes.

The attributes of the parameter.

ClassImplType.

The Type of the parameter.

DefaultValueImplobject.

The default value of the parameter.

MemberImplMemberInfo.

The member in which the field is implemented.

NameImplstring.

The name of the parameter.

PositionImplint.

The zero-based position of the parameter in the parameter list.

Public Properties

[read-only]
AttributesParameterAttributes.

Gets the attributes for this parameter.

[read-only]
CustomAttributesIEnumerable<CustomAttributeData>.

Gets a collection that contains this parameter's custom attributes.

[read-only]
DefaultValueobject.

Gets a value indicating the default value if the parameter has a default value.

[read-only]
HasDefaultValuebool.

Gets a value that indicates whether this parameter has a default value.

[read-only]
IsInbool.

Gets a value indicating whether this is an input parameter.

[read-only]
IsLcidbool.

Gets a value indicating whether this parameter is a locale identifier (lcid).

[read-only]
IsOptionalbool.

Gets a value indicating whether this parameter is optional.

[read-only]
IsOutbool.

Gets a value indicating whether this is an output parameter.

[read-only]
IsRetvalbool.

Gets a value indicating whether this is a Retval parameter.

[read-only]
MemberMemberInfo.

Gets a value indicating the member in which the parameter is implemented.

[read-only]
MetadataTokenint.

Gets a value that identifies this parameter in metadata.

[read-only]
Namestring.

Gets the name of the parameter.

[read-only]
ParameterTypeType.

Gets the Type of this parameter.

[read-only]
Positionint.

Gets the zero-based position of the parameter in the formal parameter list.

[read-only]
RawDefaultValueobject.

Gets a value indicating the default value if the parameter has a default value.

Public Methods

GetCustomAttributes(bool) : object[]

Gets all the custom attributes defined on this parameter.

GetCustomAttributes(Type, bool) : object[]

Gets the custom attributes of the specified type or its derived types that are applied to this parameter.

GetCustomAttributesData() : IList<CustomAttributeData>

Returns a list of System.Reflection.CustomAttributeData objects for the current parameter, which can be used in the reflection-only context.

GetOptionalCustomModifiers() : Type[]

Gets the optional custom modifiers of the parameter.

GetRequiredCustomModifiers() : Type[]

Gets the required custom modifiers of the parameter.

IsDefined(Type, bool) : bool

Determines whether the custom attribute of the specified type or its derived types is applied to this parameter.

override
ToString() : string

Gets the parameter type and name represented as a string.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._ParameterInfo.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._ParameterInfo.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._ParameterInfo.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._ParameterInfo.InvokeDocumentation for this section has not yet been entered.