RegistryTools.TryGetRegistryValueKindFromCurrentUserRoot 方法

定义

确定 HKCU 根注册表中属性的类型。

public:
 virtual bool TryGetRegistryValueKindFromCurrentUserRoot(System::String ^ regKeyPath, System::String ^ regKeyName, [Runtime::InteropServices::Out] Microsoft::Win32::RegistryValueKind % kind);
public bool TryGetRegistryValueKindFromCurrentUserRoot (string regKeyPath, string regKeyName, out Microsoft.Win32.RegistryValueKind kind);
abstract member TryGetRegistryValueKindFromCurrentUserRoot : string * string * RegistryValueKind -> bool
override this.TryGetRegistryValueKindFromCurrentUserRoot : string * string * RegistryValueKind -> bool
Public Function TryGetRegistryValueKindFromCurrentUserRoot (regKeyPath As String, regKeyName As String, ByRef kind As RegistryValueKind) As Boolean

参数

regKeyPath
String

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

regKeyName
String

键下的变量名称

kind
RegistryValueKind

当前值类型

返回

成功时为 True,失败时为 false

实现

适用于