Share via


Forest.GetTrustRelationship(String) Méthode

Définition

Obtient la relation d'approbation entre cette forêt et la forêt spécifiée.

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

Paramètres

targetForestName
String

Nom de l’objet Forest pour lequel les informations de relation d’approbation doivent être obtenues.

Retours

Objet ForestTrustRelationshipInformation qui représente la relation d'approbation entre cette forêt et la forêt spécifiée.

Exceptions

Il n’existe aucune relation d’approbation avec l’objet Forest spécifié par targetForestName.

Un appel au service d'annuaire sous-jacent a échoué.

Le serveur cible est occupé ou non disponible.

targetForestName est une chaîne vide.

targetForestName a la valeur null.

L’objet actuel a été supprimé.

Le compte spécifié n'a pas l'autorisation d'effectuer cette opération.

S’applique à

Voir aussi