GPSitesContainer Constructor (String)

 

Initializes a new instance of the GPSitesContainer class by using the specified forest.

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

Syntax

public GPSitesContainer(
    string forest
)
public:
GPSitesContainer(
    String^ forest
)
new : 
        forest:string -> GPSitesContainer
Public Sub New (
    forest As String
)

Parameters

  • forest
    Type: System.String

    The Domain Name System (DNS) name of the forest. This is the name of the forest root domain.

Exceptions

Exception Condition
ArgumentException

forest is an empty string (“”).

ArgumentNullException

forest is null.

Remarks

The new GPSitesContainer contains the sites in the specified forest. The root domain of the forest is used for site operations.

The PDC emulator is used to contact the forest (root domain).

See Also

GPSitesContainer Overload
GPSitesContainer Class
Microsoft.GroupPolicy Namespace

Return to top