StateManagedCollection.IList.IndexOf Method (Object)


Determines the index of a specified item in the StateManagedCollection collection.

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

int IList.IndexOf(
	object value


Type: System.Object

The object to locate in the StateManagedCollection.

Return Value

Type: System.Int32

The index of value, if it is found in the list; otherwise, -1.

The OnValidate method is called to validate value before the index is returned.

.NET Framework
Available since 2.0
Return to top