IToolboxItemCreator::CreateToolboxItem Method (String^, AssemblyName^, IEnumerable<KeyValuePair<String^, String^>>^, IEnumerable<KeyValuePair<String^, String^>>^)

 

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)

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.

This method can be called on a background thread.

Return to top
Show: