Share via


RegistryTools.GetRegistryIntValueFromLocalMachineRoot Method

Definition

Overloads

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

Get int registry value from the HKLM root Registry.

GetRegistryIntValueFromLocalMachineRoot(String, String, Boolean, Nullable<Int32>)

Get int registry value from the HKLM root Registry.

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

Get int registry value from the HKLM root Registry.

public int? GetRegistryIntValueFromLocalMachineRoot (string regKeyPath, string regKeyName, int? defaultOnError = default);
abstract member GetRegistryIntValueFromLocalMachineRoot : string * string * Nullable<int> -> Nullable<int>
override this.GetRegistryIntValueFromLocalMachineRoot : string * string * Nullable<int> -> Nullable<int>
Public Function GetRegistryIntValueFromLocalMachineRoot (regKeyPath As String, regKeyName As String, Optional defaultOnError As Nullable(Of Integer) = Nothing) As Nullable(Of Integer)

Parameters

regKeyPath
String

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

regKeyName
String

Variable name under the key

defaultOnError
Nullable<Int32>

default value on error

Returns

current value or null in case

Implements

Applies to

GetRegistryIntValueFromLocalMachineRoot(String, String, Boolean, Nullable<Int32>)

Get int registry value from the HKLM root Registry.

public int? GetRegistryIntValueFromLocalMachineRoot (string regKeyPath, string regKeyName, bool use64Bit, int? defaultOnError = default);
abstract member GetRegistryIntValueFromLocalMachineRoot : string * string * bool * Nullable<int> -> Nullable<int>
override this.GetRegistryIntValueFromLocalMachineRoot : string * string * bool * Nullable<int> -> Nullable<int>
Public Function GetRegistryIntValueFromLocalMachineRoot (regKeyPath As String, regKeyName As String, use64Bit As Boolean, Optional defaultOnError As Nullable(Of Integer) = Nothing) As Nullable(Of Integer)

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
Nullable<Int32>

default value on error

Returns

current value or null in case

Implements

Applies to