ModelingPackage.AddOrReplaceToolboxItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use AddToolboxItems instead
Add a toolbox item if it is not present. Will replace an existing toolbox item if the item is already present
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)
Parameters
- toolbox
- IToolboxService
the toolbox service
- toolboxItem
- ModelingToolboxItemBase
the new toolbox item
- Attributes