ProvideDesignerOptionsAttribute Class
Associates one or more categories with each designer in the registry.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.Design.ProvideDesignerOptionsAttribute
| Name | Description | |
|---|---|---|
![]() | ProvideDesignerOptionsAttribute(String) | Initializes a new instance of ProvideDesignerOptionsAttribute with the specified category name. |
| Name | Description | |
|---|---|---|
![]() | CategoryName | Gets the programmatic, nonlocalized name for this category. |
![]() | TypeId | Gets the current instance of this attribute.(Inherited from RegistrationAttribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | Register(RegistrationAttribute.RegistrationContext) | Registers the designer options.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).) |
![]() | ToString() | (Inherited from Object.) |
![]() | Unregister(RegistrationAttribute.RegistrationContext) | Removes this attribute from the registry using the specified registry context.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
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
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



