StateManagedCollection.IList.IndexOf Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

private abstract IndexOf : 
        value:Object -> int
private override IndexOf : 
        value:Object -> int


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