Sdílet prostřednictvím


IToolboxItemCreator.CreateToolboxItem Metoda

Definice

Vytvoří položku sady nástrojů ze zadaného typu.

public:
 Microsoft::VisualStudio::OLE::Interop::IDataObject ^ CreateToolboxItem(System::String ^ typeName, System::Reflection::AssemblyName ^ assemblyName, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ itemProperties, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ extraInfo);
public Microsoft.VisualStudio.OLE.Interop.IDataObject CreateToolboxItem (string typeName, System.Reflection.AssemblyName assemblyName, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> itemProperties, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> extraInfo);
abstract member CreateToolboxItem : string * System.Reflection.AssemblyName * seq<System.Collections.Generic.KeyValuePair<string, string>> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.VisualStudio.OLE.Interop.IDataObject
Public 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

Parametry

typeName
String

Úplný název hierarchického typu.

assemblyName
AssemblyName

Sestavení, ve kterém typeName bylo nalezeno.

itemProperties
IEnumerable<KeyValuePair<String,String>>

Vlastnosti získané z IToolboxItemInfo.GetPropertyValue pro tuto položku.

extraInfo
IEnumerable<KeyValuePair<String,String>>

Kolekce vrácená z IToolboxItemInfo.ExtraInfo pro tuto položku.

Návraty

Položka panelu nástrojů.

Poznámky

Tato metoda může být volána na pozadí vlákna.

Platí pro