IRegistryTools2.DoesRegistryKeyExistInLocalMachineRoot 方法

定义

确定 HKLM 根注册表中是否存在某个项

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

参数

regKeyPath
String

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

use64Bit
Boolean

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

返回

如果键存在,则为 True;如果键不存在,则为 false

适用于