ParameterCollection.IndexOf Method (Parameter)


Determines the index of a specified Parameter object in the ParameterCollection collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public int IndexOf(
	Parameter parameter


Type: System.Web.UI.WebControls.Parameter

The Parameter to locate in the ParameterCollection.

Return Value

Type: System.Int32

The index of parameter, if it is found in the collection; otherwise, -1.

Use this method to determine the index of a parameter in the ParameterCollection collection.

.NET Framework
Available since 2.0
Return to top