DTE2.RegistryRoot 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个字符串,该字符串具有指向注册表设置的根的路径 Visual Studio 。
public:
property System::String ^ RegistryRoot { System::String ^ get(); };
public:
property Platform::String ^ RegistryRoot { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(239)]
public string RegistryRoot { [System.Runtime.InteropServices.DispId(239)] get; }
[<System.Runtime.InteropServices.DispId(239)>]
[<get: System.Runtime.InteropServices.DispId(239)>]
member this.RegistryRoot : string
Public ReadOnly Property RegistryRoot As String
属性值
注册表设置的根的路径 Visual Studio 。
实现
- 属性
示例
Sub RegistryRootExample()
MsgBox(DTE2.RegistryRoot)
End Sub
注解
通常,注册表根为 Software\Microsoft\Visual Studio \<版本 > \,并在软件之前包含 HKLM 或 HKCU。