Share via


GroupPolicyExtension.GpoId Property

 

Gets the ID (GUID) of the Group Policy object (GPO).

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

Syntax

public Guid GpoId { get; private set; }
public:
property Guid GpoId {
    Guid get();
    private: void set(Guid value);
}
member GpoId : Guid with get, private set
Public Property GpoId As Guid
    Get
    Private Set
End Property

Property Value

Type: System.Guid

Returns Guid. The GUID of the GPO.

Exceptions

Exception Condition
InvalidOperationException

The GPO is not open.

ObjectDisposedException

The GroupPolicyExtension is disposed.

See Also

GroupPolicyExtension Class
Microsoft.GroupPolicy Namespace

Return to top