IRegistryTools2.DoesRegistryKeyExistInCurrentUserRoot(String) 方法

定义

确定 HKCU 根注册表中是否存在项

public:
 bool DoesRegistryKeyExistInCurrentUserRoot(System::String ^ regKeyPath);
public bool DoesRegistryKeyExistInCurrentUserRoot (string regKeyPath);
abstract member DoesRegistryKeyExistInCurrentUserRoot : string -> bool
Public Function DoesRegistryKeyExistInCurrentUserRoot (regKeyPath As String) As Boolean

参数

regKeyPath
String

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

返回

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

适用于