IRegistryTools.GetRegistryIntValueFromLocalMachineRoot 方法

定义

重载

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

从 HKLM 根注册表获取 int 注册表值。

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

从 HKLM 根注册表获取 int 注册表值。

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

从 HKLM 根注册表获取 int 注册表值。

public int? GetRegistryIntValueFromLocalMachineRoot (string regKeyPath, string regKeyName, int? defaultOnError = default);
abstract member 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)

参数

regKeyPath
String

格式为 key\subkey\subsubkey 的注册表项的路径

regKeyName
String

键下的变量名称

defaultOnError
Nullable<Int32>

错误时默认值

返回

当前值,如果为 null,则为

适用于

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

从 HKLM 根注册表获取 int 注册表值。

public int? GetRegistryIntValueFromLocalMachineRoot (string regKeyPath, string regKeyName, bool use64Bit, int? defaultOnError = default);
abstract member 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)

参数

regKeyPath
String

格式为 key\subkey\subsubkey 的注册表项的路径

regKeyName
String

键下的变量名称

use64Bit
Boolean

如果为 true,则使用 64 位注册表,否则使用 32 位

defaultOnError
Nullable<Int32>

错误时默认值

返回

当前值,如果为 null,则为

适用于