Freigeben über


ModelingPackage.AddOrReplaceToolboxItem-Methode

Hinweis: Diese API ist mittlerweile veraltet.

Fügen Sie ein Toolboxelement hinzu, wenn es nicht vorhanden ist. Ersetzt ein vorhandenes Toolboxelement, wenn das Element bereits vorhanden ist

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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
)

Parameter

.NET Framework-Sicherheit

Siehe auch

Referenz

ModelingPackage Klasse

Microsoft.VisualStudio.Modeling.Shell-Namespace