RegistrySetting.SetValue Method

 

Sets the data value for the registry setting.

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

Overload List

Name Description
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.

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.

System_CAPS_pubmethod SetValue(String, Int32)

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

System_CAPS_pubmethod SetValue(String, Int64)

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

System_CAPS_pubmethod SetValue(String, String)

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

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.

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.

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.

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.

See Also

RegistrySetting Class
Microsoft.GroupPolicy Namespace

Return to top