DomainController.FindOne Method (DirectoryContext)
.NET Framework 4.5
Finds a single domain controller in the specified context.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
- Type: System.DirectoryServices.ActiveDirectory.DirectoryContext
A DirectoryContext object that contains the target and credentials to use for the search.
Return ValueType: System.DirectoryServices.ActiveDirectory.DomainController
A DomainController object that represents the domain controller that was found by the search.