Forest.GetTrustRelationship(String) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.