Package.UserRegistryRoot Property

Definition

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

public:
 property Microsoft::Win32::RegistryKey ^ UserRegistryRoot { Microsoft::Win32::RegistryKey ^ get(); };
public:
 property Microsoft::Win32::RegistryKey ^ UserRegistryRoot { Microsoft::Win32::RegistryKey ^ get(); };
public Microsoft.Win32.RegistryKey UserRegistryRoot { get; }
member this.UserRegistryRoot : Microsoft.Win32.RegistryKey
Public ReadOnly Property UserRegistryRoot As RegistryKey

Property Value

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.

Applies to