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)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.Design.ProvideDesignerOptionsAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideDesignerOptionsAttribute : RegistrationAttribute

NameDescription
System_CAPS_pubmethodProvideDesignerOptionsAttribute(String)

Initializes a new instance of ProvideDesignerOptionsAttribute with the specified category name.

NameDescription
System_CAPS_pubpropertyCategoryName

Gets the programmatic, nonlocalized name for this category.

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodRegister(RegistrationAttribute.RegistrationContext)
System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(RegistrationAttribute.RegistrationContext)

Removes this attribute from the registry using the specified registry context.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).)

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.

Return to top
Show: