PreferenceRegistrySetting Class

 

Represents a Registry preference item.

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.RegistryItem
    Microsoft.GroupPolicy.RegistrySetting
      Microsoft.GroupPolicy.PreferenceRegistrySetting

Syntax

public class PreferenceRegistrySetting : RegistrySetting, IEquatable<PreferenceRegistrySetting>
public ref class PreferenceRegistrySetting : RegistrySetting, 
    IEquatable<PreferenceRegistrySetting^>
type PreferenceRegistrySetting = 
    class
        inherit RegistrySetting
        interface IEquatable<PreferenceRegistrySetting>
    end
Public Class PreferenceRegistrySetting
    Inherits RegistrySetting
    Implements IEquatable(Of PreferenceRegistrySetting)

Constructors

Name Description
System_CAPS_pubmethod PreferenceRegistrySetting()

Initializes a new instance of the PreferenceRegistrySetting class.

System_CAPS_pubmethod PreferenceRegistrySetting(RegistrySetting)

Initializes a new instance of the PreferenceRegistrySetting class by using the specified registry setting.

Properties

Name Description
System_CAPS_pubproperty Action

Gets or sets the action for the Registry preference item.

System_CAPS_pubproperty DisabledByAncestor

Gets or sets a value that specifies whether the Registry preference item is disabled by an ancestor.

System_CAPS_pubproperty DisabledDirectly

Gets or sets a value that specifies whether the Registry preference item is disabled directly.

System_CAPS_pubproperty FullKeyPath

Gets the full key path for the registry item.(Inherited from RegistryItem.)

System_CAPS_pubproperty HasValue

Gets a value that indicates whether the registry setting has a value associated with it.(Inherited from RegistrySetting.)

System_CAPS_pubproperty Hive

Gets or sets the registry hive for the Registry preference item.(Overrides RegistryItem.Hive.)

System_CAPS_pubproperty KeyPath

Gets or sets the key path for the registry item.(Inherited from RegistryItem.)

System_CAPS_pubproperty Order

Gets or sets the order for the Registry preference item.

System_CAPS_pubproperty Type

Gets a value that indicates the data type of the registry setting.(Inherited from RegistrySetting.)

System_CAPS_pubproperty Value

Gets the value data for the registry setting.(Inherited from RegistrySetting.)

System_CAPS_pubproperty ValueName

Gets or sets the value name for this registry setting.(Inherited from RegistrySetting.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Equals(PreferenceRegistrySetting)

Determines whether the specified Registry preference item is equal to this Registry preference item.

System_CAPS_pubmethod Equals(RegistryItem)

Determines whether the specified registry item is equal to this registry item.(Inherited from RegistryItem.)

System_CAPS_pubmethod Equals(RegistrySetting)

Determines whether the specified registry setting is equal to this registry setting.(Inherited from RegistrySetting.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetBinaryValue()

Retrieves the data value for a registry setting that modifies the registry with Binary (REG_BINARY) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetDWordValue()

Retrieves the data value for a registry setting that modifies the registry with DWord (REG_DWORD) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetMultiStringValue()

Retrieves the data value for a registry setting that modifies the registry with MultiString (REG_MULTI_SZ) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetQWordValue()

Retrieves the data value for a registry setting that modifies the registry with QWord (REG_QWORD) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetStringValue()

Retrieves the data value for a registry setting that modifies the registry with String (REG_SZ) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetUInt32Value()

Retrieves the data value as unsigned for a registry setting that modifies the registry with DWord (REG_DWORD) data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod GetUInt64Value()

Retrieves the data value as unsigned for a registry setting that modifies the registry with QWord (REG_QDWORD) data.(Inherited from RegistrySetting.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RemoveValue()

Removes the registry value for the registry setting.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, Byte[])

Configures the registry setting with a Binary (REG_BINARY) value that has the specified value name and value data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, ICollection, RegistryValueKind)

Configures the registry setting with a Binary (REG_BINARY) or MultiString (REG_MULTI_SZ) value that has the specified value name and value data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, Int32)

Configures the registry setting with a DWord (REG_DWORD) value by using the specified Int32.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, Int64)

Configures the registry setting with a QWord (REG_QWORD) value by using the specified Int64.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, String)

Configures the registry setting with a String (REG_SZ) value by using the specified string.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, String, RegistryValueKind)

Configures the registry setting with a String (REG_SZ), ExpandString (REG_EXPAND_SZ), or MultiString (REG_MULTI_SZ) value that has the specified value name and value data.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, String[])

Configures the registry setting with a MultiString (REG_MULTI_SZ) value that has the specified value name by using an array of strings.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, UInt32)

Configures the registry setting with a DWord (REG_DWORD) value that has the specified value name by using the specified UInt32.(Inherited from RegistrySetting.)

System_CAPS_pubmethod SetValue(String, UInt64)

Configures the registry setting with a QWord (REG_QWORD) value that has the specified value name by using the specified UInt64.(Inherited from RegistrySetting.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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