共用方式為


IToolboxItemCreator.CreateToolboxItem Method

Creates a toolbox item from the specified type.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'宣告
Function CreateToolboxItem ( _
    typeName As String, _
    assemblyName As AssemblyName, _
    itemProperties As IEnumerable(Of KeyValuePair(Of String, String)), _
    extraInfo As IEnumerable(Of KeyValuePair(Of String, String)) _
) As IDataObject
IDataObject CreateToolboxItem(
    string typeName,
    AssemblyName assemblyName,
    IEnumerable<KeyValuePair<string, string>> itemProperties,
    IEnumerable<KeyValuePair<string, string>> extraInfo
)

Parameters

Return Value

Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The toolbox item.

Remarks

This method can be called on a background thread.

.NET Framework Security

See Also

Reference

IToolboxItemCreator Interface

Microsoft.VisualStudio.Shell Namespace