共用方式為


AsyncModelingPackage.AddOrReplaceToolboxItem 方法

定義

警告

Use AddToolboxItems instead

如果工具箱專案不存在,請新增工具箱專案。 如果專案已經存在,將會取代現有的工具箱專案

public:
 static void AddOrReplaceToolboxItem(System::Drawing::Design::IToolboxService ^ toolbox, Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItemBase ^ toolboxItem);
[System.Obsolete("Use AddToolboxItems instead")]
public static void AddOrReplaceToolboxItem (System.Drawing.Design.IToolboxService toolbox, Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase toolboxItem);
[<System.Obsolete("Use AddToolboxItems instead")>]
static member AddOrReplaceToolboxItem : System.Drawing.Design.IToolboxService * Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase -> unit
Public Shared Sub AddOrReplaceToolboxItem (toolbox As IToolboxService, toolboxItem As ModelingToolboxItemBase)

參數

toolbox
IToolboxService

工具箱服務

toolboxItem
ModelingToolboxItemBase

新的工具箱專案

屬性

適用於