Forest.GetTrustRelationship(String) Método

Definición

Obtiene la relación de confianza entre este bosque y el bosque especificado.Gets the trust relationship between this forest and the specified forest.

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

Parámetros

targetForestName
String

Nombre del objeto Forest para el que debe obtenerse información sobre la relación de confianza.The name of the Forest object for which the trust relationship information is to be obtained.

Devoluciones

Objeto ForestTrustRelationshipInformation que representa la relación de confianza entre este bosque y el bosque especificado.A ForestTrustRelationshipInformation object that represents the trust relationship between this forest and the specified forest.

Excepciones

No hay ninguna relación de confianza con el Forest especificado por targetForestName.There is no trust relationship with the Forest that is specified by targetForestName.

Una llamada al servicio de directorio subyacente produjo un error.A call to the underlying directory service resulted in an error.

El servidor de destino está ocupado o no está disponible.The target server is either busy or unavailable.

targetForestName es una cadena vacía.targetForestName is an empty string.

targetForestName es null.targetForestName is null.

Se ha eliminado el objeto actual.The current object has been disposed.

La cuenta especificada no tiene permiso para realizar esta operación.The specified account does not have permission to perform this operation.

Se aplica a

Consulte también: