Forest::RepairTrustRelationship Method (Forest^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Repairs a trust relationship.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public:
void RepairTrustRelationship(
	Forest^ targetForest
)

Parameters

targetForest
Type: System.DirectoryServices.ActiveDirectory::Forest^

A Forest object that represents the forest object with which the trust exists.

Exception Condition
ActiveDirectoryObjectNotFoundException

There is no trust relationship with the Forest object that is specified by targetForest.

ActiveDirectoryOperationException

A call to the underlying directory service resulted in an error.

ActiveDirectoryServerDownException

The target server is either busy or unavailable.

ArgumentNullException

targetForest is null.

ObjectDisposedException

The object has been disposed.

UnauthorizedAccessException

The specified account does not have permission to perform this operation.

.NET Framework
Available since 2.0
Return to top
Show: