Package.UserRegistryRoot Property

Gets a registry key that can be used to store user data.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'Declaration
Public ReadOnly Property UserRegistryRoot As RegistryKey
'Usage
Dim instance As Package 
Dim value As RegistryKey 

value = instance.UserRegistryRoot
public RegistryKey UserRegistryRoot { get; }
public:
property RegistryKey^ UserRegistryRoot {
    RegistryKey^ get ();
}
public function get UserRegistryRoot () : RegistryKey

Property Value

Type: Microsoft.Win32.RegistryKey
A RegistryKey that can be used to store user data.

Remarks

The UserRegistryRoot property returns a registry key that can be used to store user data. Typically this key points to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>, but an alternate root can be specified when the Visual Studio shell is initialized.

The RegistryKey returned by UserRegistryRoot is the registry root for the current user. It is opened as read/write. Always call Close on this key when you are finished using it.

.NET Framework Security

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace