Export (0) Print
Expand All

Package.UserRegistryRoot Property

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

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

public RegistryKey UserRegistryRoot { get; }

Property Value

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

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.

Community Additions

ADD
Show:
© 2014 Microsoft