ApplicationPartitionCollection.IndexOf(ApplicationPartition) Methode

Definitie

Retourneert het eerste exemplaar van het opgegeven ApplicationPartition object in deze verzameling.

public:
 int IndexOf(System::DirectoryServices::ActiveDirectory::ApplicationPartition ^ applicationPartition);
public int IndexOf(System.DirectoryServices.ActiveDirectory.ApplicationPartition applicationPartition);
member this.IndexOf : System.DirectoryServices.ActiveDirectory.ApplicationPartition -> int
Public Function IndexOf (applicationPartition As ApplicationPartition) As Integer

Parameters

applicationPartition
ApplicationPartition

Het ApplicationPartition object waarnaar moet worden gezocht in deze verzameling.

Retouren

De op nul gebaseerde index van het eerste overeenkomende item. -1 als geen lid van deze verzameling identiek is aan applicationPartition.

Uitzonderingen

Een aanroep van de onderliggende adreslijstservice heeft tot een fout geleid.

applicationPartition is null.

Van toepassing op

Zie ook