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
'Declaration
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
)
public:
ProvideToolboxItemDiscoveryAttribute(
String^ name,
String^ helpKeyword,
Type^ discoveryType,
Type^ itemCreatorType,
array<String^>^ frameworksToEnumerate
)
new :
name:string *
helpKeyword:string *
discoveryType:Type *
itemCreatorType:Type *
frameworksToEnumerate:string[] -> ProvideToolboxItemDiscoveryAttribute
public function ProvideToolboxItemDiscoveryAttribute(
name : String,
helpKeyword : String,
discoveryType : Type,
itemCreatorType : Type,
frameworksToEnumerate : String[]
)
Parameters
name
Type: System.StringName of this item type (for example, ".NET Framework Components"). If localizable, this parameter is a resource identifier.
helpKeyword
Type: System.StringHelp keyword for this item type.
discoveryType
Type: System.TypeType of a class implementing IToolboxItemDiscovery.
itemCreatorType
Type: System.TypeType 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.