TTMSMCPTools.Add Method
Creates an empty tool, appends it to the collection and binds it to the collection's owner.
API unit family: TMS.MCP.Tools
Declaring type: TTMSMCPTools
Overloads
Overload 1
Creates an empty tool, appends it to the collection and binds it to the collection's owner.
function Add: TTMSMCPTool; overload;
Returns
The newly created tool, owned by the collection.
Overload 2
Moves an existing tool into this collection, for example one produced by the fluent builder, and binds it to the collection's owner.
procedure Add(ATool: TTMSMCPTool); overload;
Parameters
| Name | Description |
|---|---|
ATool |
The tool to move in. Unlike the collections of input parameters, this overload does not copy: it reparents the instance, so the collection becomes its owner and destroys it. Do not free the tool afterwards and do not add the same instance twice; if it already belonged to another collection, it is removed from that one. |