ModelingPackage.AddOrReplaceToolboxItem Method
Note: This API is now obsolete.
Add a toolbox item if it is not present. Will replace an existing toolbox item if the item is already present
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
<ObsoleteAttribute("Use AddToolboxItems instead")> _
Public Shared Sub AddOrReplaceToolboxItem ( _
toolbox As IToolboxService, _
toolboxItem As ModelingToolboxItemBase _
)
[ObsoleteAttribute("Use AddToolboxItems instead")]
public static void AddOrReplaceToolboxItem(
IToolboxService toolbox,
ModelingToolboxItemBase toolboxItem
)
[ObsoleteAttribute(L"Use AddToolboxItems instead")]
public:
static void AddOrReplaceToolboxItem(
IToolboxService^ toolbox,
ModelingToolboxItemBase^ toolboxItem
)
[<ObsoleteAttribute("Use AddToolboxItems instead")>]
static member AddOrReplaceToolboxItem :
toolbox:IToolboxService *
toolboxItem:ModelingToolboxItemBase -> unit
public static function AddOrReplaceToolboxItem(
toolbox : IToolboxService,
toolboxItem : ModelingToolboxItemBase
)
Parameters
- toolbox
Type: System.Drawing.Design.IToolboxService
the toolbox service
- toolboxItem
Type: Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase
the new toolbox item
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.