Controller. Seize Role Ownership(ActiveDirectoryRole) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Causes this domain controller to take ownership of the specified role.
public: void SeizeRoleOwnership(System::DirectoryServices::ActiveDirectory::ActiveDirectoryRole role);
public void SeizeRoleOwnership (System.DirectoryServices.ActiveDirectory.ActiveDirectoryRole role);
member this.SeizeRoleOwnership : System.DirectoryServices.ActiveDirectory.ActiveDirectoryRole -> unit
Public Sub SeizeRoleOwnership (role As ActiveDirectoryRole)
One of the ActiveDirectoryRole members that specifies which role the domain controller should take ownership of.
role is not valid.
The current object has been disposed.
This method is a destructive operation because it causes the role to be taken without the cooperation of the server that currently holds the role. The DomainController.TransferRoleOwnership method should be used instead whenever possible.