Method WriteValue
WriteValue(string, string, object, RegistryValueKind, RegistryHive)
Writes value to Windows registry.
public static bool WriteValue(string keyPath, string valueName, object value, RegistryValueKind valueKind, RegistryHive hive = RegistryHive.LocalMachine)
Parameters
keyPath
stringPath to value.
valueName
stringName of the value.
value
objectValue to write.
valueKind
RegistryValueKindValue kind.
hive
RegistryHiveRegistryHive value which specifies base path.