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
System_CAPS_pubmethod GPSitesContainer()

Initializes a new instance of the GPSitesContainer class by using forest of the current user context.

System_CAPS_pubmethod GPSitesContainer(String)

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

System_CAPS_pubmethod GPSitesContainer(String, String)

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

System_CAPS_pubmethod GPSitesContainer(String, String, String, DCUsage)

Properties

Name Description
System_CAPS_pubproperty DomainController

Gets the name of the domain controller that is being used to perform site operations.

System_CAPS_pubproperty DomainName

Gets the name of the domain that is being used to perform site operations.

System_CAPS_pubproperty 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
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSite(String)

Retrieves the scope of management (SOM) for the specified site.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SearchSites(Gpo)

Retrieves the scope of management (SOM) for each site in the forest to which the specified GPO is linked.

System_CAPS_pubmethod 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