Domain.GetAllTrustRelationships Metod

Definition

Hämtar alla förtroenderelationer för den här domänen.

public:
 System::DirectoryServices::ActiveDirectory::TrustRelationshipInformationCollection ^ GetAllTrustRelationships();
public System.DirectoryServices.ActiveDirectory.TrustRelationshipInformationCollection GetAllTrustRelationships();
member this.GetAllTrustRelationships : unit -> System.DirectoryServices.ActiveDirectory.TrustRelationshipInformationCollection
Public Function GetAllTrustRelationships () As TrustRelationshipInformationCollection

Returer

Ett TrustRelationshipInformationCollection objekt som innehåller alla förtroenderelationer för den här domänen.

Undantag

Ett anrop till den underliggande katalogtjänsten resulterade i ett fel.

Målservern är antingen upptagen eller otillgänglig.

Objektet har tagits bort.

Det angivna kontot har inte behörighet att utföra den här åtgärden.

Gäller för

Se även