Forest.GetTrustRelationship(String) Metodo

Definizione

Ottiene la relazione di trust tra questa foresta e la foresta specificata.

public:
 System::DirectoryServices::ActiveDirectory::ForestTrustRelationshipInformation ^ GetTrustRelationship(System::String ^ targetForestName);
public System.DirectoryServices.ActiveDirectory.ForestTrustRelationshipInformation GetTrustRelationship(string targetForestName);
member this.GetTrustRelationship : string -> System.DirectoryServices.ActiveDirectory.ForestTrustRelationshipInformation
Public Function GetTrustRelationship (targetForestName As String) As ForestTrustRelationshipInformation

Parametri

targetForestName
String

Nome dell'oggetto Forest per cui ottenere le informazioni sulla relazione di trust.

Valori restituiti

Oggetto ForestTrustRelationshipInformation che rappresenta la relazione di trust tra questa foresta e la foresta specificata.

Eccezioni

Non esiste alcuna relazione di trust con l'oggetto Forest specificato da targetForestName.

Una chiamata al servizio directory sottostante ha generato un errore.

Il server di destinazione è occupato o non disponibile.

targetForestName è una stringa vuota.

targetForestName è null.

L'oggetto corrente è stato eliminato.

L'account specificato non dispone dell'autorizzazione per eseguire questa operazione.

Si applica a

Vedi anche