GPSitesContainer Class
Represents the forest-level container that contains the actual sites in a forest.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Inheritance Hierarchy
System.Object
Microsoft.GroupPolicy.GPSitesContainer
Syntax
public class GPSitesContainer
public ref class GPSitesContainer
type GPSitesContainer = class end
Public Class GPSitesContainer
Constructors
Name | Description | |
---|---|---|
GPSitesContainer() | Initializes a new instance of the GPSitesContainer class by using forest of the current user context. |
|
GPSitesContainer(String) | Initializes a new instance of the GPSitesContainer class by using the specified forest. |
|
GPSitesContainer(String, String) | Initializes a new instance of the GPSitesContainer class by using the specified forest and the specified domain. |
|
GPSitesContainer(String, String, String, DCUsage) |
Properties
Name | Description | |
---|---|---|
DomainController | Gets the name of the domain controller that is being used to perform site operations. |
|
DomainName | Gets the name of the domain that is being used to perform site operations. |
|
ForestName | Gets the full Domain Name System (DNS) name of the forest in which the GPSitesContainer resides; this is the name of the forest root domain. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetSite(String) | Retrieves the scope of management (SOM) for the specified site. |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
SearchSites(Gpo) | Retrieves the scope of management (SOM) for each site in the forest to which the specified GPO is linked. |
|
ToString() | (Inherited from Object.) |
Remarks
The GPSitesContainer class provides methods and properties that you can use to access the scope of management (SOM) objects that represent sites in a forest.
This class wraps the IGPMSitesContainer COM interface.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.GroupPolicy Namespace
Return to top