TsgcWSAPIClient_MCP › Methods › TasksCancel

TasksCancel Method

Asks the server to cancel a task (tasks/cancel).

Syntax

procedure TasksCancel(const aTaskId: string);

Parameters

NameTypeDescription
aTaskIdconst stringId of the task.

Remarks

Requires the protocol version 2026-07-28; in the legacy era the method raises an exception. The poller of the task is stopped. The final status is reported by the server as cancelled.

See Tasks.

Example

MCP.TasksCancel(FTaskId);

Back to Methods