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
'Declaración
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
- typeName
Type: System.String
A full hierarchical type name.
- assemblyName
Type: System.Reflection.AssemblyName
The assembly in which typeName is found.
- itemProperties
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>
Properties obtained from GetPropertyValue for this item.
- extraInfo
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>
Collection returned from ExtraInfo for this item.
Return Value
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The toolbox item.
Remarks
This method can be called on a background thread.
.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.