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
relativeKeyPathstringRelative path to value.
valueNamestringName of the value.
valueobjectValue to write.
valueKindRegistryValueKindValue kind.
hiveRegistryHiveRegistryHive value which specifies base path.