PreferenceSettings Class

 

Provides access to the Group Policy Object (GPO) Editor extension that is used to create, delete, modify, or read Registry preference items in a GPO section.

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.PreferenceSettings

Syntax

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

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 preference items. 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 preference items.

You can get an instance of this class for the User Configuration section of a GPO from the UserConfiguration.Preference property. You can get an instance of this class for the Computer Configuration section of a GPO from the ComputerConfiguration.Preference 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