ProvideToolboxItemDiscoveryAttribute Class
Defines a toolbox item type. Toolbox item types are exposed as pages in the Choose Toolbox Items dialog (where one page is created for each type).
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.ProvideToolboxItemDiscoveryAttribute
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideToolboxItemDiscoveryAttribute _
Inherits RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideToolboxItemDiscoveryAttribute : RegistrationAttribute
The ProvideToolboxItemDiscoveryAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ProvideToolboxItemDiscoveryAttribute | Initializes a new instance of the ProvideToolboxItemDiscoveryAttribute class. |
Top
Properties
Name | Description | |
---|---|---|
AppDomainCreatorType | Gets or sets the type of the IToolboxAppDomainControl implementation. | |
FileFilter | Gets or sets the file filter for the browse dialog. | |
HelperObjectType | Gets or sets the type of the helper object that will be passed to your IToolboxItemDiscovery implementation's constructor. | |
HideAssemblyName | Gets or sets whether the current tab is to hide the assembly name column in the Choose Toolbox Items dialog. If true, the assembly name column is hidden; if false (default), the assembly name column is displayed. | |
HideCulture | Gets or sets whether the current tab is to hide the language information in the Choose Toolbox Items dialog. If true, the language information is hidden; if false (default), the language information is displayed. | |
HideDirectory | Gets or sets whether the current tab is to hide the directory column in the Choose Toolbox Items dialog. If true, the directory column is hidden; if false (default), the directory column is displayed. | |
HideNamespace | Gets or sets whether the current tab is to hide the namespace column in the Choose Toolbox Items dialog. If true, the namespace column is hidden; if false (default) the namespace column is displayed. | |
HideVersion | Gets or sets whether the current tab is to hide the version in the Choose Toolbox Items dialog. If true, the version is hidden; if false (default), the version is displayed. | |
ItemCreatorType | Gets the type of the IToolboxItemCreator implementation. | |
ItemDiscoveryType | Gets the type of the IToolboxItemDiscovery implementation. | |
ItemPropertyIdsAndNames | Gets a collection of extra columns (as identifier-Display-Name pairs) to display in the dialog. | |
PageOrder | Gets or sets the sort order of the page. If zero, the page is left unsorted and will appear after all pages with nonzero order values. Pages with equal order values are sorted alphabetically by name. | |
PlatformsToEnumerate | Gets or sets a collection of platform identifiers indicating the platforms that should be enumerated to populate the list in this item type's Choose Toolbox Items page. | |
TypeId | Gets the identity of this instance of the attribute. (Overrides RegistrationAttribute.TypeId.) | |
VisibilityUIContexts | Gets or sets a list of UIContexts that controls the visibility of the tab. The tab is hidden if none of the UI contexts are set. Only non-dynamic UI contexts are supported (for example, OsWindows8OrHigherContext). Use of dynamic contexts like NoSolutionContext is not supported and results in non-deterministic behaviors. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
Register | Registers this attribute with the given context. (Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unregister | Unregisters this attribute. (Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames | Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.) | |
_Attribute.GetTypeInfo | Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.) | |
_Attribute.GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.) | |
_Attribute.Invoke | Provides access to properties and methods exposed by an object. (Inherited from Attribute.) |
Top
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.