共用方式為


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

'宣告
<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
Public method ProvideToolboxItemDiscoveryAttribute Initializes a new instance of the ProvideToolboxItemDiscoveryAttribute class.

Top

Properties

  Name Description
Public property AppDomainCreatorType Gets or sets the type of the IToolboxAppDomainControl implementation.
Public property FileFilter Gets or sets the file filter for the browse dialog.
Public property HelperObjectType Gets or sets the type of the helper object that will be passed to your IToolboxItemDiscovery implementation's constructor.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property ItemCreatorType Gets the type of the IToolboxItemCreator implementation.
Public property ItemDiscoveryType Gets the type of the IToolboxItemDiscovery implementation.
Public property ItemPropertyIdsAndNames Gets a collection of extra columns (as identifier-Display-Name pairs) to display in the dialog.
Public property 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.
Public property 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.
Public property TypeId Gets the identity of this instance of the attribute. (Overrides RegistrationAttribute.TypeId.)
Public property 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
Public method Equals Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from Attribute.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.)
Public method Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Public method Register Registers this attribute with the given context. (Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Unregister Unregisters this attribute. (Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.)
Explicit interface implemetationPrivate method _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.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace