_DTE.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(DTE.RegistryRoot)  
End Sub  

注解

通常,注册表根 Software\Microsoft\Visual Studio\<version>\ 包含 HKLMHKCU 之前 Software

适用于