GPDomain Constructor (String)

 

Initializes a new instance of the GPDomain class that represents the specified domain.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public GPDomain(
    string domainName
)
public:
GPDomain(
    String^ domainName
)
new : 
        domainName:string -> GPDomain
Public Sub New (
    domainName As String
)

Parameters

  • domainName
    Type: System.String

    The full domain name system (DNS) name of the domain.

Exceptions

Exception Condition
ArgumentException

domainName is an empty string (“”).

ArgumentNullException

domainName is null.

Remarks

The new GPDomain object represents the specified domain and uses the PDC emulator to communicate with the domain.

The full DNS name of the domain is also known as the fully-qualified domain name (FQDN); for example, sales.contoso.com.

See Also

GPDomain Overload
GPDomain Class
Microsoft.GroupPolicy Namespace

Return to top