SchemaNameCollection.IList.IndexOf Method (Object)


Determines the index of a specified item in the list.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

int IList.IndexOf(
	object value


Type: System.Object

The item to locate in the list.

Return Value

Type: System.Int32

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

Starting with the .NET Framework 2.0, this method uses the Equals and CompareTo methods of the objects in the collection to determine whether item exists. In the earlier versions of the .NET Framework, this determination was made by using the Equals and CompareTo methods of the item parameter on the objects in the collection.

.NET Framework
Available since 1.1
Return to top