ModelingPackage.AddToolboxItems 方法
將傳遞的 ModelingToolboxItemBase 項目集合加入至 Visual Studio 工具箱中。
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)
語法
'宣告
Protected Sub AddToolboxItems ( _
items As IEnumerable(Of ModelingToolboxItemBase) _
)
protected void AddToolboxItems(
IEnumerable<ModelingToolboxItemBase> items
)
參數
- items
類型:System.Collections.Generic.IEnumerable<ModelingToolboxItemBase>
要加入的 ModelingToolboxItem 陣列。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。