Share via


GroupPolicyExtension Constructor (Domain, String)

 

Initializes a new instance of the GroupPolicyExtension class by using the specified Domain and the display name of the Group Policy object (GPO).

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

Syntax

protected GroupPolicyExtension(
    Domain domain,
    string gpoDisplayName
)
protected:
GroupPolicyExtension(
    Domain^ domain,
    String^ gpoDisplayName
)
new : 
        domain:Domain *
        gpoDisplayName:string -> GroupPolicyExtension
Protected Sub New (
    domain As Domain,
    gpoDisplayName As String
)

Parameters

  • gpoDisplayName
    Type: System.String

    The display name of the GPO to edit.

Exceptions

Exception Condition
ArgumentNullException

domain is null.

ActiveDirectoryObjectNotFoundException

The GPO is not found.

MultipleGroupPolicyObjectsFoundException

Multiple GPOs with the specified display name exist in the domain.

See Also

GroupPolicyExtension Overload
GroupPolicyExtension Class
Microsoft.GroupPolicy Namespace

Return to top