RegistryTools.GetRegistryIntValueFromLocalMachineRoot Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
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
Zwraca
bieżąca wartość lub wartość null w przypadku