This topic has not yet been rated - Rate this topic

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)

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true)] 
public sealed class ProvideDesignerOptionsAttribute : RegistrationAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true) */ 
public final class ProvideDesignerOptionsAttribute extends RegistrationAttribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true) 
public final class ProvideDesignerOptionsAttribute extends RegistrationAttribute

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
System.Object
   System.Attribute
     Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.Design.ProvideDesignerOptionsAttribute
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.