Table of Contents

TTMSMCPResource.ToJSON Method

Builds the descriptor published for this entry in a listing.

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

Syntax

function ToJSON: TJSONValue;

Remarks

Icons are only included when the stored text parses into an array; anything else is discarded silently so a malformed value cannot break the listing.

Returns

A new object carrying the template address for a template entry and the fixed address otherwise, followed by the name and, when they have been set, the title, description, media type and icons. The caller owns the returned object.