Udostępnij za pośrednictwem


RegistryTools.GetRegistryIntValueFromLocalMachineRoot Metoda

Definicja

Przeciążenia

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

Pobierz wartość rejestru int z głównego rejestru HKLM.

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

Pobierz wartość rejestru int z głównego rejestru HKLM.

GetRegistryIntValueFromLocalMachineRoot(String, String, Nullable<Int32>)

Pobierz wartość rejestru int z głównego rejestru HKLM.

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)

Parametry

regKeyPath
String

Ścieżka do klucza rejestru w formacie key\subkey\subsubkey

regKeyName
String

Nazwa zmiennej pod kluczem

defaultOnError
Nullable<Int32>

wartość domyślna błędu

Zwraca

bieżąca wartość lub wartość null w przypadku

Implementuje

Dotyczy

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

Pobierz wartość rejestru int z głównego rejestru HKLM.

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)

Parametry

regKeyPath
String

Ścieżka do klucza rejestru w formacie key\subkey\subsubkey

regKeyName
String

Nazwa zmiennej pod kluczem

use64Bit
Boolean

Jeśli wartość true, używa rejestru 64-bitowego, w przeciwnym razie jest używany 32-bitowy

defaultOnError
Nullable<Int32>

wartość domyślna błędu

Zwraca

bieżąca wartość lub wartość null w przypadku

Implementuje

Dotyczy