Save a value in the registry. The SubKey will be created if it does not exists.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Sub SetValue ( _
	registryKey As RegistryKey, _
	subKey As String, _
	name As String, _
	value As Object, _
	registryValueKind As RegistryValueKind _
)
C#
public static void SetValue(
	RegistryKey registryKey,
	string subKey,
	string name,
	Object value,
	RegistryValueKind registryValueKind
)

Parameters

registryKey
Type: Microsoft.Win32..::..RegistryKey
subKey
Type: System..::..String
name
Type: System..::..String
value
Type: System..::..Object
registryValueKind
Type: Microsoft.Win32..::..RegistryValueKind

See Also