Udostępnij za pośrednictwem


IToolboxItemCreator.CreateToolboxItem Metoda

Definicja

Tworzy element przybornika na podstawie określonego 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

Pełna nazwa typu hierarchicznego.

assemblyName
AssemblyName

Zestaw, w którym typeName znaleziono.

itemProperties
IEnumerable<KeyValuePair<String,String>>

Właściwości uzyskane z elementu IToolboxItemInfo.GetPropertyValue.

extraInfo
IEnumerable<KeyValuePair<String,String>>

Kolekcja zwrócona z elementu IToolboxItemInfo.ExtraInfo.

Zwraca

Element przybornika.

Uwagi

Tę metodę można wywołać w wątku w tle.

Dotyczy