AsyncModelingPackage.AddToolboxItemsAsync 方法

定义

将传递的 ModelingToolboxItemBase 项集合添加到 Visual Studio 工具箱中。

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

参数

items
IEnumerable<ModelingToolboxItemBase>

要添加的 ModelingToolboxItem 数组。

cancellationToken
CancellationToken

返回

适用于