Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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
toolbox
Type: IToolboxServicethe toolbox service
toolboxItem
Type: Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBasethe 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.