Table of Contents

Method WriteValue

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

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 string

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