TTMSMCPResourceBuilder.URITemplate Method
Publishes the entry as a pattern covering a family of addresses.
API unit family: TMS.MCP.Resources
Declaring type: TTMSMCPResourceBuilder
Syntax
function URITemplate(const AURITemplate: string): TTMSMCPResourceBuilder;
Remarks
A fixed address and a template address exclude one another.
Parameters
| Name | Description |
|---|---|
AURITemplate |
Pattern with each variable part written between braces. Must not be empty. |
Returns
The builder, so calls can be chained.
Exceptions
| Exception | Description |
|---|---|
EJsonRpcException |
Raised with invalid-parameters, error code -32602, when the pattern is empty or a fixed address has already been set. |