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, String)

Adds a new tool to the toolbox under the given 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, _
   ByVal category As String _
)
[C#]
void AddTool(
   ToolboxItem toolboxItem,
   string category
);
[C++]
void AddTool(
   ToolboxItem* toolboxItem,
   String* category
) = 0;
[JScript]
function AddTool(
   toolboxItem : ToolboxItem,
   category : String
);

Parameters

toolboxItem
The tool to add.
category
The category under which to add the tool.

See Also

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