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)

Private Function IndexOf (
	value As Object
) As Integer
	Implements IList.IndexOf

Parameters

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
Show: