Freigeben über


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

'Declaration
<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

.NET Framework Security

See Also

Reference

ModelingPackage Class

Microsoft.VisualStudio.Modeling.Shell Namespace