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

格式機碼\子機碼\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

格式機碼\子機碼\subsubkey 的登錄機碼路徑

regKeyName
String

機碼底下的變數名稱

use64Bit
Boolean

如果為 true,則會使用 64 位登錄,否則會使用 32 位

defaultOnError
Nullable<Int32>

錯誤上的預設值

傳回

如果為目前值或 Null

適用於