ResultPropertyValueCollection.IndexOf Method (Object)


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

The IndexOf method retrieves the index of a specified property value in this collection.

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

public int IndexOf(
	object value


Type: System.Object

The property value to find.

Return Value

Type: System.Int32

The zero-based index of the specified property value. If the object is not found, the return value is -1.

.NET Framework
Available since 1.1
Return to top