IndexOf(string) Method
Syntax:
public int IndexOf(string parameterName)
Description:
Returns the index of the parameter within the parameter collection that contains the specified name.
Parameters:
parameterName
Type: System.String
The name of the parameter in the collection.
Return Value:
Type: System.Int32
The zero-based index of the specified parameter or -1 if the parameter is not found.
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbParameterCollection.IndexOf