Share via


GroupPolicyExtension Constructor (Domain, Guid)

 

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

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

Syntax

protected GroupPolicyExtension(
    Domain domain,
    Guid gpoId
)
protected:
GroupPolicyExtension(
    Domain^ domain,
    Guid gpoId
)
new : 
        domain:Domain *
        gpoId:Guid -> GroupPolicyExtension
Protected Sub New (
    domain As Domain,
    gpoId As Guid
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

domain is null.

ActiveDirectoryObjectNotFoundException

The GPO is not found.

See Also

GroupPolicyExtension Overload
GroupPolicyExtension Class
Microsoft.GroupPolicy Namespace

Return to top