RegistrySetting Class
The abstract base class from which Group Policy settings that modify the registry must derive.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)
Inheritance Hierarchy
System.Object
Microsoft.GroupPolicy.RegistryItem
Microsoft.GroupPolicy.RegistrySetting
Microsoft.GroupPolicy.PolicyRegistrySetting
Microsoft.GroupPolicy.PreferenceRegistrySetting
Syntax
public abstract class RegistrySetting : RegistryItem, IEquatable<RegistrySetting>
public ref class RegistrySetting abstract : RegistryItem, IEquatable<RegistrySetting^>
[<AbstractClass>]
type RegistrySetting =
class
inherit RegistryItem
interface IEquatable<RegistrySetting>
end
Public MustInherit Class RegistrySetting
Inherits RegistryItem
Implements IEquatable(Of RegistrySetting)
Constructors
Name | Description | |
---|---|---|
RegistrySetting() | Initializes a new instance of the RegistrySetting class. |
|
RegistrySetting(RegistrySetting) | Initializes a new instance of the RegistrySetting class by using another registry setting. |
Properties
Name | Description | |
---|---|---|
FullKeyPath | Gets the full key path for the registry item.(Inherited from RegistryItem.) |
|
HasValue | Gets a value that indicates whether the registry setting has a value associated with it. |
|
Hive | Gets or sets the registry hive for the registry item.(Inherited from RegistryItem.) |
|
KeyPath | Gets or sets the key path for the registry item.(Inherited from RegistryItem.) |
|
Type | Gets a value that indicates the data type of the registry setting. |
|
Value | Gets the value data for the registry setting. |
|
ValueName | Gets or sets the value name for this registry setting. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Equals(RegistryItem) | Determines whether the specified registry item is equal to this registry item.(Inherited from RegistryItem.) |
|
Equals(RegistrySetting) | Determines whether the specified registry setting is equal to this registry setting. |
|
Finalize() | (Inherited from Object.) |
|
GetBinaryValue() | Retrieves the data value for a registry setting that modifies the registry with Binary (REG_BINARY) data. |
|
GetDWordValue() | Retrieves the data value for a registry setting that modifies the registry with DWord (REG_DWORD) data. |
|
GetHashCode() | (Inherited from Object.) |
|
GetMultiStringValue() | Retrieves the data value for a registry setting that modifies the registry with MultiString (REG_MULTI_SZ) data. |
|
GetQWordValue() | Retrieves the data value for a registry setting that modifies the registry with QWord (REG_QWORD) data. |
|
GetStringValue() | Retrieves the data value for a registry setting that modifies the registry with String (REG_SZ) data. |
|
GetType() | (Inherited from Object.) |
|
GetUInt32Value() | Retrieves the data value as unsigned for a registry setting that modifies the registry with DWord (REG_DWORD) data. |
|
GetUInt64Value() | Retrieves the data value as unsigned for a registry setting that modifies the registry with QWord (REG_QDWORD) data. |
|
MemberwiseClone() | (Inherited from Object.) |
|
RemoveValue() | Removes the registry value for the registry setting. |
|
SetValue(String, Byte[]) | Configures the registry setting with a Binary (REG_BINARY) value that has the specified value name and value data. |
|
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. |
|
SetValue(String, Int32) | Configures the registry setting with a DWord (REG_DWORD) value by using the specified Int32. |
|
SetValue(String, Int64) | Configures the registry setting with a QWord (REG_QWORD) value by using the specified Int64. |
|
SetValue(String, String) | Configures the registry setting with a String (REG_SZ) value by using the specified string. |
|
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. |
|
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. |
|
SetValue(String, UInt32) | Configures the registry setting with a DWord (REG_DWORD) value that has the specified value name by using the specified UInt32. |
|
SetValue(String, UInt64) | Configures the registry setting with a QWord (REG_QWORD) value that has the specified value name by using the specified UInt64. |
|
ToString() | (Inherited from Object.) |
Remarks
The following classes extend the RegistrySetting class:
The PolicyRegistrySetting class represents a registry-based policy setting.
The PreferenceRegistrySetting class represents a Registry preference item.
You can extend the class to create classes that represent other registry-based Group Policy settings.
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