ForestTrustDomainInfoCollection.IndexOf(ForestTrustDomainInformation) Metoda

Definicja

Zwraca indeks pierwszego wystąpienia określonego obiektu ForestTrustDomainInformation w tej kolekcji.

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

Parametry

information
ForestTrustDomainInformation

Obiekt ForestTrustDomainInformation do wyszukania w tej kolekcji.

Zwraca

Int32

Indeks od zera pierwszego pasującego obiektu. Zwraca wartość -1, jeśli żaden członek tej kolekcji nie jest identyczny z ForestTrustDomainInformation obiektem .

Wyjątki

information to null.

Dotyczy

Zobacz też