Share via


RegistryTools.GetRegistryValueFromCurrentUserRoot Method

Definition

Get registry key value from the HKCU root Registry.

public object GetRegistryValueFromCurrentUserRoot (string regKeyPath, string regKeyName, object defaultOnError = default);
abstract member GetRegistryValueFromCurrentUserRoot : string * string * obj -> obj
override this.GetRegistryValueFromCurrentUserRoot : string * string * obj -> obj
Public Function GetRegistryValueFromCurrentUserRoot (regKeyPath As String, regKeyName As String, Optional defaultOnError As Object = Nothing) As Object

Parameters

regKeyPath
String

Path to the registry key in the format key\subkey\subsubkey

regKeyName
String

Variable name under the key

defaultOnError
Object

default value on error

Returns

current value or null in case

Implements

Applies to