Forest.DeleteTrustRelationship(Forest) Metoda

Definicja

Usuwa obie strony relacji zaufania.

public:
 void DeleteTrustRelationship(System::DirectoryServices::ActiveDirectory::Forest ^ targetForest);
public void DeleteTrustRelationship (System.DirectoryServices.ActiveDirectory.Forest targetForest);
member this.DeleteTrustRelationship : System.DirectoryServices.ActiveDirectory.Forest -> unit
Public Sub DeleteTrustRelationship (targetForest As Forest)

Parametry

targetForest
Forest

Forest Obiekt reprezentujący las, z którym istnieje zaufanie.

Wyjątki

Nie ma relacji zaufania z określoną wartością Forest.

Wywołanie podstawowej usługi katalogowej spowodowało błąd.

Serwer docelowy jest zajęty lub niedostępny.

targetForest to null.

Obiekt został usunięty.

Określone konto nie ma uprawnień do wykonania tej operacji.

Uwagi

Aby usunąć tylko jedną stronę relacji zaufania, użyj Forest.DeleteLocalSideOfTrustRelationship metody .

Dotyczy

Zobacz też