Share via


DTE2.RegistryRoot Property

Gets a string with the path to the root of the Visual Studio registry settings.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property RegistryRoot As String
'Usage
Dim instance As DTE2 
Dim value As String 

value = instance.RegistryRoot
string RegistryRoot { get; }
property String^ RegistryRoot {
    String^ get ();
}
function get RegistryRoot () : String

Property Value

Type: System.String
The path to the root of the Visual Studio registry settings.

Implements

_DTE.RegistryRoot

Remarks

Typically the registry root is Software\Microsoft\Visual Studio\<version>\ with either HKLM or HKCU before Software.

Examples

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

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

RegistryRoot Overload

EnvDTE80 Namespace