Domain.FindAllDiscoverableDomainControllers Method (String)
Finds all of the discoverable domain controllers in this domain that are also in the specified site.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
public DomainControllerCollection FindAllDiscoverableDomainControllers( string siteName )
- Type: System.String
The name of the site to search for the domain controllers.
Return ValueType: System.DirectoryServices.ActiveDirectory.DomainControllerCollection
A DomainControllerCollection that contains the domain controller objects that were found by this method.
You can find discoverable domain controllers by querying DNS SRV records. If a domain controller does not register an SRV record for the specified site, it will not be returned by this method, even if the domain controller is physically located within that site.
All domain controllers that register an SRV record for the specified site will be returned by this method, even if they are not physically located within that site.