_DTE.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(DTE.RegistryRoot)
End Sub
注解
通常,注册表根 Software\Microsoft\Visual Studio\<version>\ 包含 HKLM 或 HKCU 之前 Software 。