Share via


AsyncModelingPackage.AddToolboxItemsAsync Method

Definition

Add the passed collection of ModelingToolboxItemBase items into the Visual Studio toolbox.

protected:
 System::Threading::Tasks::Task ^ AddToolboxItemsAsync(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItemBase ^> ^ items, System::Threading::CancellationToken cancellationToken);
protected System.Threading.Tasks.Task AddToolboxItemsAsync (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase> items, System.Threading.CancellationToken cancellationToken);
member this.AddToolboxItemsAsync : seq<Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Function AddToolboxItemsAsync (items As IEnumerable(Of ModelingToolboxItemBase), cancellationToken As CancellationToken) As Task

Parameters

items
IEnumerable<ModelingToolboxItemBase>

An array of ModelingToolboxItem to be added.

cancellationToken
CancellationToken

Returns

Applies to