Table of Contents

TTMSMCPResourceBuilder.Reader Method

Sets the code that produces the content when the entry is read.

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

Syntax

function Reader(const AResourceReader: TTMSMCPResourceMethod): TTMSMCPResourceBuilder;

Parameters

Name Description
AResourceReader Handler to call. Must be assigned.

Returns

The builder, so calls can be chained.

Exceptions

Exception Description
EJsonRpcException Raised with invalid-parameters, error code -32602, when no handler is supplied.