ProvideDesignerOptionsAttribute Class
Associates one or more categories with each designer in the registry.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class ProvideDesignerOptionsAttribute _
Inherits RegistrationAttribute
'Usage
Dim instance As ProvideDesignerOptionsAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideDesignerOptionsAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class ProvideDesignerOptionsAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)>]
type ProvideDesignerOptionsAttribute =
class
inherit RegistrationAttribute
end
public final class ProvideDesignerOptionsAttribute extends RegistrationAttribute
Remarks
For packages that implement designers, this associates the designer with one or more categories. When applied to a VSPackage that implements a designer like this:
Using MSVSIP = Microsoft.VisualStudio.Shell;
[ProvideDesignerOptionsAttribute("categoryA")]
[ProvideDesignerOptionsAttribute("categoryB")]
public sealed class MyVSPackage : MSVSIP.Package
{
// Class body omitted.
}
The resulting registry entries for designer categories include:
Designers\\Options\categoryA
Designers\\Options\\ categoryB
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.Design.ProvideDesignerOptionsAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
ProvideDesignerOptionsAttribute Members
Microsoft.VisualStudio.Shell.Design Namespace