Share via


ParameterInfos.IndexOf(String) Method

Definition

Gets the index of the parameter with the specified name in the parameter collection.

public:
 int IndexOf(System::String ^ parameterName);
public int IndexOf (string parameterName);
member this.IndexOf : string -> int
Public Function IndexOf (parameterName As String) As Integer

Parameters

parameterName
String

The name of the parameter.

Returns

The index of the parameter with the specified name if found in the parameter collection; otherwise, -1.

Applies to