Freigeben über


ProvideToolboxItemDiscoveryAttribute Class

Definition

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).

public ref class ProvideToolboxItemDiscoveryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideToolboxItemDiscoveryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideToolboxItemDiscoveryAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideToolboxItemDiscoveryAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideToolboxItemDiscoveryAttribute
Inherits RegistrationAttribute
Inheritance
ProvideToolboxItemDiscoveryAttribute
Attributes

Constructors

ProvideToolboxItemDiscoveryAttribute(String, String, Type, Type, String[])

Initializes a new instance of the ProvideToolboxItemDiscoveryAttribute class.

Properties

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 ID / DisplayName 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

A collection of platform IDs indicating the platroms 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.

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.

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to