NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IToolboxService.AddTool (ToolboxItem)

Adds a new tool to the toolbox under the default category. Exceptions will be thrown if the tool already exists or if you are adding a class that should not be placed on the toolbox. For a class to exist on the toolbox, it must be a NGWS component and have the ShowInToolboxAttribute set.

[Visual Basic]
Overloads Sub AddTool( _
   ByVal toolboxItem As ToolboxItem _
)
[C#]
void AddTool(
   ToolboxItem toolboxItem
);
[C++]
void AddTool(
   ToolboxItem* toolboxItem
) = 0;
[JScript]
function AddTool(
   toolboxItem : ToolboxItem
);

Parameters

toolboxItem
The tool to add.

See Also

IToolboxService Interface | IToolboxService Members | System.WinForms.Design Namespace | IToolboxService.AddTool Overload List