Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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
)
IDataObject^ CreateToolboxItem(
    String^ typeName, 
    AssemblyName^ assemblyName, 
    IEnumerable<KeyValuePair<String^, String^>>^ itemProperties, 
    IEnumerable<KeyValuePair<String^, String^>>^ extraInfo
)
abstract CreateToolboxItem : 
        typeName:string * 
        assemblyName:AssemblyName * 
        itemProperties:IEnumerable<KeyValuePair<string, string>> * 
        extraInfo:IEnumerable<KeyValuePair<string, string>> -> IDataObject
function CreateToolboxItem(
    typeName : String, 
    assemblyName : AssemblyName, 
    itemProperties : IEnumerable<KeyValuePair<String, String>>, 
    extraInfo : IEnumerable<KeyValuePair<String, String>>
) : IDataObject
Parameters
- typeName 
 Type: String- A full hierarchical type name. 
- assemblyName 
 Type: AssemblyName- The assembly in which typeName is found. 
- itemProperties 
 Type: IEnumerable<KeyValuePair<String, String>>- Properties obtained from GetPropertyValue for this item. 
- extraInfo 
 Type: 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.