Method WriteRelativeValue
WriteRelativeValue(string, string, object, RegistryValueKind, RegistryHive)
Writes value to Windows registry key specified with the relative path.
public static bool WriteRelativeValue(string relativeKeyPath, string valueName, object value, RegistryValueKind valueKind, RegistryHive hive = RegistryHive.LocalMachine)
Parameters
relativeKeyPath
stringRelative path to value.
valueName
stringName of the value.
value
objectValue to write.
valueKind
RegistryValueKindValue kind.
hive
RegistryHiveRegistryHive value which specifies base path.