System.Reflection.ParameterInfo Class

Discovers the attributes of a parameter and provides access to parameter metadata.

See Also: ParameterInfo Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._ParameterInfo))]
[System.Runtime.InteropServices.ComVisible(true)]
public class ParameterInfo : ICustomAttributeProvider, System.Runtime.InteropServices._ParameterInfo

Remarks

Use an instance of ParameterInfo to obtain information about the parameter's data type, default value, and so on.

MethodBase.GetParameters returns an array of ParameterInfo objects representing the parameters of a method, in order.

Thread Safety

This type is safe for multithreaded operations.

Permissions

TypeReason
!:ReflectionPermissionRequires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0