Udostępnij przez


ForestTrustDomainInfoCollection.IndexOf(ForestTrustDomainInformation) Metoda

Definicja

Zwraca indeks pierwszego wystąpienia określonego ForestTrustDomainInformation obiektu 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 do wyszukania ForestTrustDomainInformation w tej kolekcji.

Zwraca

Indeks oparty na zerowym pierwszym pasującym obiekcie. Zwraca wartość -1, jeśli żaden element członkowski tej kolekcji jest identyczny z obiektem ForestTrustDomainInformation .

Wyjątki

information to null.

Dotyczy

Zobacz też