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)
Usage
Dim forest As String
Dim instance As New GPSitesContainer(forest)
Syntax
'Declaration
Public Sub New ( _
forest As String _
)
public GPSitesContainer (
string forest
)
public:
GPSitesContainer (
String^ forest
)
public GPSitesContainer (
String forest
)
public function GPSitesContainer (
forest : String
)
Parameters
- forest
The Domain Name System (DNS) name of the forest. This is the name of the forest root domain.
Exceptions
| Exception type | 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).
Platforms
Development Platforms
Windows Server 2008 R2
Target Platforms
Windows Server 2008 R2
See Also
Reference
GPSitesContainer Class
GPSitesContainer Members
Microsoft.GroupPolicy Namespace