TransferRoleOwnership Method

DomainController.TransferRoleOwnership Method (ActiveDirectoryRole)

 

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:
© 2016 Microsoft