Table of Contents

TTMSMCPCustomClientConnection.GetResources Method

Returns the resource catalog the server published, one entry per resource.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Syntax

function GetResources: TJSONArray;

Remarks

This is the connection's own internal array, not a copy. Never free the result, never modify it, and never hold on to it: Stop and every catalog refresh replace the array, which leaves an earlier reference dangling. Copy what is needed before the connection can refresh.

Returns

The cached catalog, empty until the handshake has completed and the catalog has been received.