Share via


Package.UserRegistryRoot Property

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

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

Syntax

'Declaration
Public ReadOnly Property UserRegistryRoot As RegistryKey
public RegistryKey UserRegistryRoot { get; }
public:
property RegistryKey^ UserRegistryRoot {
    RegistryKey^ get ();
}
member UserRegistryRoot : RegistryKey with get
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

Microsoft.VisualStudio.Shell Namespace