DefaultRegistryRootAttribute.Root Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the default registry root for the VSPackage.
public:
property System::String ^ Root { System::String ^ get(); };
public:
property Platform::String ^ Root { Platform::String ^ get(); };
public string Root { get; }
member this.Root : string
Public ReadOnly Property Root As String
Property Value
The value of the default registry root for the VSPackage.
Remarks
The registry root stored in DefaultRegistryRootAttribute is relative to HKEY_LOCAL_MACHINE
. For example, a value of Software\\Microsoft\\VisualStudio\\8.0Exp corresponds to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0Exp.
Automatic registration tools such as regpkg.exe register the VSPackage into the registry root stored in DefaultRegistryRootAttribute unless the registration tool provides an alternate registry root, for example, as a command line argument.