TTMSMCPResources.Add Method
Appends an empty entry and returns it so its properties can be filled in.
API unit family: TMS.MCP.Resources
Declaring type: TTMSMCPResources
Overloads
Overload 1
Appends an empty entry and returns it so its properties can be filled in.
function Add: TTMSMCPResource; overload;
Remarks
Nothing is validated here, so the entry is incomplete until at least an address and a handler have been assigned.
Returns
The new entry, which stays owned by the collection.
Overload 2
Appends a copy of an existing entry.
procedure Add(AResource: TTMSMCPResource); overload;
Remarks
This overload copies without checking anything. Use the registering counterpart when the address, name and handler should be validated first.
Parameters
| Name | Description |
|---|---|
AResource |
Entry to copy. It is not adopted: the caller keeps it and remains responsible for freeing it. |