GroupPolicyExtension Class

 

The abstract base class that represents a Group Policy Object Editor extension.

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.GroupPolicyExtension
    Microsoft.GroupPolicy.PreferenceExtension
    Microsoft.GroupPolicy.RegistryPolicy

Syntax

public abstract class GroupPolicyExtension : IDisposable
public ref class GroupPolicyExtension abstract : IDisposable
[<AbstractClass>]
type GroupPolicyExtension = 
    class
        interface IDisposable
    end
Public MustInherit Class GroupPolicyExtension
    Implements IDisposable

Constructors

Name Description
System_CAPS_protmethod GroupPolicyExtension(DirectoryContext, Guid)

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

System_CAPS_protmethod GroupPolicyExtension(DirectoryContext, String)

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

System_CAPS_protmethod GroupPolicyExtension(Domain, Guid)

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

System_CAPS_protmethod GroupPolicyExtension(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).

System_CAPS_protmethod GroupPolicyExtension(DomainController, Guid)

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

System_CAPS_protmethod GroupPolicyExtension(DomainController, String)

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

Properties

Name Description
System_CAPS_protproperty ClientSideExtensionGuid

When implemented in a derived class, gets the GUID of the client-side extension.

System_CAPS_protproperty ComputerEditorGuid

When implemented in a derived class, gets the GUID of the editor that is used to edit Group Policy settings in the computer section of the Group Policy object (GPO).

System_CAPS_protproperty Domain

Gets the domain for the Group Policy object (GPO).

System_CAPS_protproperty DomainController

Gets domain controller on which the Group Policy object (GPO) is being edited.

System_CAPS_protproperty Gpo

Gets the underlying GroupPolicyObject that represents the GPO being edited.

System_CAPS_pubproperty GpoDisplayName

Gets the display name of the Group Policy object (GPO) that is being edited.

System_CAPS_pubproperty GpoId

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

System_CAPS_pubproperty GpoPath

Gets the distinguished name of the Group Policy object (GPO).

System_CAPS_protproperty IsOpened

Gets a value that indicates whether the GPO has been opened.

System_CAPS_pubproperty IsReadOnly

Gets a value that indicates whether the Group Policy object (GPO) is opened in read-only mode.

System_CAPS_protproperty UserEditorGuid

When implemented in a derived class, gets the GUID of the editor that is used to edit Group Policy settings in the user section of the Group Policy object (GPO).

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the GroupPolicyExtension class.

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the GroupPolicyExtension class and optionally releases the managed resources.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_static EscapeStringForLdap(String)

System_CAPS_protmethod Finalize()

Allows a GroupPolicyExtension object to attempt to free resources and perform other cleanup operations before the object is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_static IsDefaultValueName(String)

This method is for internal use only. Do not use it in your code.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnOpened(EventArgs)

Called by the OpenGpo method to allow for post-processing by the derived class.

System_CAPS_protmethod OnOpening(EventArgs)

Called by the OpenGpo method to allow for pre-processing by the derived class.

System_CAPS_protmethod OnSaved(EventArgs)

Called by the Save method after the save has been performed, to allow for post-processing by the derived class.

System_CAPS_protmethod OnSaving(SavingEventArgs)

Called by the Save method before the save is performed, to allow for pre-processing by the derived class.

System_CAPS_protmethod OpenGpo(Boolean)

Opens the Group Policy object (GPO) according to the specified value for read only.

System_CAPS_protmethod OpenGpo(Boolean, Boolean)

Opens the Group Policy object (GPO) according to the specified value for read only and optionally loads the registry.

System_CAPS_protmethod Save(Boolean)

Saves the specified Group Policy object (GPO) section for the GPO.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_protfieldSystem_CAPS_static defaultValueNameConstant

This field is for internal use only. Do not use it in your code.

Remarks

The following classes derive from this class:

  • RegistryPolicy represents the Group Policy Object Editor extension that can be used to create, modify, and delete registry-based policy settings.

  • PreferenceExtension represents the Group Policy Object Editor extension that can be used to create, modify, and delete Registry preference items.

You can derive from this class to create classes that represent other Group Policy Object Editor extensions.

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