| ActiveDirectoryGetSiteDomainControllers Method |
Gets the domain controllers associated with a specific Active Directory site from the Active Directory's DNS SRV records.
Namespace:
Galactic.ActiveDirectory
Assembly:
Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public static List<string> GetSiteDomainControllers(
string domainName,
string siteName
)
Public Shared Function GetSiteDomainControllers (
domainName As String,
siteName As String
) As List(Of String)
public:
static List<String^>^ GetSiteDomainControllers(
String^ domainName,
String^ siteName
)
static member GetSiteDomainControllers :
domainName : string *
siteName : string -> List<string>
Parameters
- domainName
- Type: SystemString
The DNS domain name of the Active Directory to retrieve the domain controllers for. - siteName
- Type: SystemString
The name of the site to retrieve the domain controllers for.
Return Value
Type:
ListStringA list containing the FQDNs of the domain controllers in the specified site, or an empty list if they could not be retrieved.
See Also