DefaultRegistryRootAttribute Constructor (String^)
Visual Studio 2015
Initializes a new DefaultRegistryRootAttribute object with the given registry root.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- root
-
Type:
System::String^
The default registry root used to register VSPackage information.
| Exception | Condition |
|---|---|
| ArgumentNullException | The constructor throws an ArgumentNullException if the root argument is null. |
The following Visual C# code applies the DefaultRegistryRoot attribute to a VSPackage named MyVSPackage.
using Microsoft.VisualStudio.Shell;
using MSVSIP = Microsoft.VisualStudio.Shell;
[MSVSIP.DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\8.0Exp")]
public class MyVSPackage : MSVSIP.Package {}
Show: