ProvideToolboxItemDiscoveryAttribute Constructor
Initializes a new instance of the ProvideToolboxItemDiscoveryAttribute class.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public Sub New ( _
name As String, _
helpKeyword As String, _
discoveryType As Type, _
itemCreatorType As Type, _
frameworksToEnumerate As String() _
)
public ProvideToolboxItemDiscoveryAttribute(
string name,
string helpKeyword,
Type discoveryType,
Type itemCreatorType,
string[] frameworksToEnumerate
)
Parameters
- name
Type: System.String
Name of this item type (for example, ".NET Framework Components"). If localizable, this parameter is a resource identifier.
- helpKeyword
Type: System.String
Help keyword for this item type.
- discoveryType
Type: System.Type
Type of a class implementing IToolboxItemDiscovery.
- itemCreatorType
Type: System.Type
Type of a class implementing IToolboxItemCreator.
- frameworksToEnumerate
Type: array<System.String[]
A collection of framework identifiers indicating the frameworks that should be enumerated to populate the list in this item type's Choose Toolbox Items page.
Remarks
Provides the name of this item type (for example, ".NET Framework Components"). If localizable, this should be a resource ID.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.