ParameterInfo.Position Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.