DomainController.TransferRoleOwnership Method (ActiveDirectoryRole)

 
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.

Causes ownership of the specified role to be transferred to this domain controller.

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

public void TransferRoleOwnership(
	ActiveDirectoryRole role
)

Parameters

role
Type: System.DirectoryServices.ActiveDirectory.ActiveDirectoryRole

One of the ActiveDirectoryRole members that specifies which role will be transferred to this domain controller.

Exception Condition
InvalidEnumArgumentException

role is not valid.

ObjectDisposedException

The current object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show: