Assembly: Microsoft.VisualStudio.Shell (in microsoft.visualstudio.shell.dll)
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true)] public sealed class DefaultRegistryRootAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true) */ public final class DefaultRegistryRootAttribute extends Attribute
When to Call
Apply the attribute DefaultRegistryRootAttribute to your-derived class or class that implements to define the default registry root for the package.
The attribute should be applied to classes implementing the Package class and needing to use an alternate registry root. If not present, the default registry root will be used and this may prevent the package from functioning. The base Package class already provides this attribute for the version of Visual Studio that the package was built for.
The value of the attribute must be a fully qualified registry root, such as Software\Microsoft\VisualStudio\8.0. External registration tools can override the default registry root with their own custom root.
This attribute class is only used to provide data for external registration tools. It does not have any effect on the runtime behavior of the VSPackage. To use DefaultRegistryRootAttribute, place it on class that is derived from Package or that implements IVsPackage.
Visual C# automatically appends the word, Attribute, to the name of any attribute class. In Visual C# code, refer to this attribute as DefaultRegistryRoot.
You can find implementations of the DefaultRegistryRootAttribute class in the Managed Samples section of the Visual Studio Environment SDK. The standard location for this and all other attributes used for automatic registration is adjacent to the implementation of the Package class in VsPkg.cs, VsPkg.vb, or VsPkg.cpp, depending on the language used in the sample.