DomainController.GetDomainController Method (DirectoryContext)
Retrieves a DomainController object for the specified context.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
A DirectoryContext object that contains the target and credentials to use to retrieve the object. The target of this context must be a domain controller.
Return ValueType: System.DirectoryServices.ActiveDirectory.DomainController
A DomainController object that represents the domain controller that was found.
Available since 2.0