RegistryTools.DoesRegistryKeyExistInLocalMachineRoot(String, Boolean) 方法

定義

判斷 HKLM 根登錄中是否存在機碼

public bool DoesRegistryKeyExistInLocalMachineRoot (string regKeyPath, bool use64Bit = false);
abstract member DoesRegistryKeyExistInLocalMachineRoot : string * bool -> bool
override this.DoesRegistryKeyExistInLocalMachineRoot : string * bool -> bool
Public Function DoesRegistryKeyExistInLocalMachineRoot (regKeyPath As String, Optional use64Bit As Boolean = false) As Boolean

參數

regKeyPath
String

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

use64Bit
Boolean

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

傳回

如果索引鍵存在,則為 True;如果索引鍵不存在則為 false

實作

適用於