The CancelExecution method cancels execution of the task.
object.CancelExecution
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
CancelExecution must be called on a thread different from the execution thread.
HRESULT CancelExecution();