Table of Contents

TTMSMCPResourceBuilder.Build Method

Checks that the entry is complete and hands it over.

API unit family: TMS.MCP.Resources Declaring type: TTMSMCPResourceBuilder

Syntax

function Build: TTMSMCPResource;

Remarks

The builder keeps nothing afterwards, so it must be built at most once; a second call has no entry left to check and fails.

Returns

The finished entry. Ownership passes to the caller: free it, or hand it to a collection, which copies it and leaves the original to be freed.

Exceptions

Exception Description
EJsonRpcException Raised with invalid-parameters, error code -32602, when the name is empty, when neither a fixed address nor a template address is set, or when no handler is assigned.