Share via


RegistryTools.GetRegistryValueFromLocalMachineRoot Method

Definition

Overloads

GetRegistryValueFromLocalMachineRoot(String, String, Object)

Get registry key value from the HKLM root Registry.

GetRegistryValueFromLocalMachineRoot(String, String, Boolean, Object)

Get registry key value from the HKLM root Registry.

GetRegistryValueFromLocalMachineRoot(String, String, Object)

Get registry key value from the HKLM root Registry.

public object GetRegistryValueFromLocalMachineRoot (string regKeyPath, string regKeyName, object defaultOnError = default);
abstract member GetRegistryValueFromLocalMachineRoot : string * string * obj -> obj
override this.GetRegistryValueFromLocalMachineRoot : string * string * obj -> obj
Public Function GetRegistryValueFromLocalMachineRoot (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

GetRegistryValueFromLocalMachineRoot(String, String, Boolean, Object)

Get registry key value from the HKLM root Registry.

public object GetRegistryValueFromLocalMachineRoot (string regKeyPath, string regKeyName, bool use64Bit, object defaultOnError = default);
abstract member GetRegistryValueFromLocalMachineRoot : string * string * bool * obj -> obj
override this.GetRegistryValueFromLocalMachineRoot : string * string * bool * obj -> obj
Public Function GetRegistryValueFromLocalMachineRoot (regKeyPath As String, regKeyName As String, use64Bit As Boolean, 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

use64Bit
Boolean

if true, it uses the 64 bit registry, otherwise 32 bit is used

defaultOnError
Object

default value on error

Returns

current value or null in case

Implements

Applies to