Skip to main content
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

TMS.MCP.Resources.hppPascalC++
function Reader(const AResourceReader: TTMSMCPResourceMethod): TTMSMCPResourceBuilder;
TTMSMCPResourceBuilder* __fastcall Reader(const _di_TTMSMCPResourceMethod AResourceReader);

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.