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

新的工具箱项

属性

适用于