Table of Contents

Method WriteRelativeValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

Relative path to value.

valueName string

Name of the value.

value object

Value to write.

valueKind RegistryValueKind

Value kind.

hive RegistryHive

RegistryHive value which specifies base path.

Returns

bool