Domain.GetTrustRelationship(String) Método

Definição

Obtém a relação de confiança entre este domínio e o domínio especificado.Gets the trust relationship between this domain and the specified domain.

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

Parâmetros

targetDomainName
String

O nome DNS do domínio com o qual a relação de confiança existe.The DNS name of the domain with which the trust relationship exists.

Retornos

TrustRelationshipInformation

Um objeto TrustRelationshipInformation que representa a relação de confiança entre este domínio e o domínio especificado.A TrustRelationshipInformation object that represents the trust relationship between this domain and the specified domain.

Exceções

Não há nenhuma relação de confiança com o Forest especificado pelo parâmetro targetForestName.There is no trust relationship with the Forest that is specified by the targetForestName parameter.

Uma chamada ao serviço de diretório subjacente resultou em um erro.A call to the underlying directory service resulted in an error.

O servidor de destino está ocupado ou indisponível.The target server is either busy or unavailable.

targetDomainName é uma cadeia de caracteres vazia.targetDomainName is an empty string.

targetDomainName é null.targetDomainName is null.

O objeto atual foi descartado.The current object has been disposed.

A conta especificada não tem permissão para executar essa operação.The specified account does not have permission to perform this operation.

Aplica-se a

Confira também