RegistryPreference.WriteDWordValue Method (RegistryHive, String, String, UInt32, PreferenceAction, Int32, Boolean)
Writes a Registry preference item that configures a DWord registry value by using the specified 32-bit unsigned integer.
This API is not CLS-compliant.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
[CLSCompliantAttribute(false)]
public void WriteDWordValue(
RegistryHive hive,
string keyPath,
string valueName,
uint value,
PreferenceAction action,
int order,
bool disable
)
public:
[CLSCompliantAttribute(false)]
void WriteDWordValue(
RegistryHive hive,
String^ keyPath,
String^ valueName,
unsigned int value,
PreferenceAction action,
int order,
bool disable
)
[<CLSCompliantAttribute(false)>]
member WriteDWordValue :
hive:RegistryHive *
keyPath:string *
valueName:string *
value:uint32 *
action:PreferenceAction *
order:int *
disable:bool -> unit
<CLSCompliantAttribute(False)>
Public Sub WriteDWordValue (
hive As RegistryHive,
keyPath As String,
valueName As String,
value As UInteger,
action As PreferenceAction,
order As Integer,
disable As Boolean
)
Parameters
hive
Type: Microsoft.Win32.RegistryHiveOne of theRegistryHive values that specifies the registry hive of the key.
keyPath
Type: System.StringThe path to the registry key.
valueName
Type: System.StringThe name of the registry value. You can specify an empty string (“”) for the default value.
value
Type: System.UInt32A 32-bit unsigned integer that contains the value data.
action
Type: Microsoft.GroupPolicy.PreferenceActionOne of the PreferenceAction values that specifies the action.
order
Type: System.Int32The order for the Registry preference item.
disable
Type: System.Booleantrue to disable the Registry preference item; otherwise, false.
See Also
WriteDWordValue Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top