Partager via


Package.UserRegistryRoot Property

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Public ReadOnly Property UserRegistryRoot As RegistryKey
    Get
'Utilisation
Dim instance As Package
Dim value As RegistryKey

value = instance.UserRegistryRoot
public RegistryKey UserRegistryRoot { get; }
public:
property RegistryKey^ UserRegistryRoot {
    RegistryKey^ get ();
}
member UserRegistryRoot : RegistryKey
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