Share via


_DTE.RegistryRoot 属性

获取包含 Visual Studio 注册表设置的根的路径的字符串。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
ReadOnly Property RegistryRoot As String
string RegistryRoot { get; }
property String^ RegistryRoot {
    String^ get ();
}
abstract RegistryRoot : string with get
function get RegistryRoot () : String

属性值

类型:String
表示 Visual Studio 注册表设置的根的路径的字符串。

备注

通常注册表根是 Software\Microsoft\Visual Studio\<version>\,在 Software 之前有 HKLM 或 HKCU。

示例

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

.NET Framework 安全性

请参阅

参考

_DTE 接口

EnvDTE 命名空间