ApplicationPartitionCollection.IndexOf Method (ApplicationPartition)
Returns the first occurrence of the specified ApplicationPartition object in this collection.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
The ApplicationPartition object to search for in this collection.
Return ValueType: System.Int32
The zero-based index of the first matching item. -1 if no member of this collection is identical to applicationPartition.
Available since 2.0