Share via


PolicySettings Class

 

Provides access to the Group Policy Object (GPO) Editor extension that is used to create, delete, modify, or read registry-based policy settings in a GPO section.

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.PolicySettings

Syntax

public sealed class PolicySettings
public ref class PolicySettings sealed 
[<Sealed>]
type PolicySettings = class end
Public NotInheritable Class PolicySettings

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetRegistry(Boolean)

Retrieves an instance of the Group Policy Object (GPO) Editor extension that is used to create, delete, modify, and read registry-based policy settings. The instance can optionally be returned for read-only mode.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

This class provides a method, GetRegistry, that returns an instance of the GPO editor extension that is used for registry-based policy settings.

You can get an instance of this class for the User Configuration section of a GPO from the UserConfiguration.Policy property. You can get an instance of this class for the Computer Configuration section of a GPO from the ComputerConfiguration.Policy property.

This class is exposed to support these two properties; you should not try to create an instance of this class in your code.

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