DTE2.RegistryRoot 属性

定义

获取一个字符串,该字符串具有指向注册表设置的根的路径 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

属性值

String

注册表设置的根的路径 Visual Studio 。

实现

属性

示例

Sub RegistryRootExample()  
  MsgBox(DTE2.RegistryRoot)  
End Sub  

注解

通常,注册表根为 Software\Microsoft\Visual Studio \<版本 > \,并在软件之前包含 HKLM 或 HKCU。

适用于