System.Reflection.ParameterInfo Class

public class ParameterInfo

Base Types

Object
  ParameterInfo

Assembly

mscorlib

Library

Reflection

Summary

Provides access to parameter metadata.

See Also

System.Reflection Namespace

Members

ParameterInfo Constructors

ParameterInfo Constructor

ParameterInfo Properties

ParameterInfo.Attributes Property
ParameterInfo.Name Property
ParameterInfo.ParameterType Property


ParameterInfo Constructor

protected ParameterInfo();

Summary

Constructs a new instance of the ParameterInfo class.

Description

This constructor is called only by classes that derive from ParameterInfo .

See Also

System.Reflection.ParameterInfo Class, System.Reflection Namespace

ParameterInfo.Attributes Property

public virtual ParameterAttributes Attributes { get; }

Summary

Gets the attributes of the parameter reflected by the current instance.

Property Value

A ParameterAttributes value representing the attributes for the parameter reflected by the current instance.

Description

[Behaviors: This property is read-only.]

See Also

System.Reflection.ParameterInfo Class, System.Reflection Namespace

ParameterInfo.Name Property

public virtual string Name { get; }

Summary

Gets the name of the parameter reflected by the current instance.

Property Value

A String that contains the name of the parameter reflected by the current instance.

Description

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 is void MyMethod(object MyParm), the System.Reflection.ParameterInfo.Name property value would be "MyParm".]

[Behaviors: This property is read-only.]

See Also

System.Reflection.ParameterInfo Class, System.Reflection Namespace

ParameterInfo.ParameterType Property

public virtual Type ParameterType { get; }

Summary

Gets the type of the parameter reflected by the current instance.

Property Value

The Type of the parameter reflected by the current instance.

Description

This property returns the type declared for the property. [Note: For example, if a method signature is void 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.]

See Also

System.Reflection.ParameterInfo Class, System.Reflection Namespace