Επεξεργασία

Κοινή χρήση μέσω


ParameterInfo.Position Property

Definition

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

public:
 virtual property int Position { int get(); };
public virtual int Position { get; }
member this.Position : int
Public Overridable ReadOnly Property Position As Integer

Property Value

An integer representing the position this parameter occupies in the parameter list.

Remarks

Only parameters in the method signature (that is, in the formal parameter list) are considered when calculating the position. For instance methods, the hidden parameter that represents this (Me in Visual Basic) is not counted.

This method utilizes the PositionImpl method.

To get the ParameterInfo array, first get the method or the constructor and then call MethodBase.GetParameters.

Applies to

See also