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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om