Redigera

Dela via


Activity.Cancel(ActivityExecutionContext) Method

Definition

Called by the workflow runtime to cancel execution of an activity that is currently executing.

protected public:
 virtual System::Workflow::ComponentModel::ActivityExecutionStatus Cancel(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext);
protected internal virtual System.Workflow.ComponentModel.ActivityExecutionStatus Cancel (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
abstract member Cancel : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
override this.Cancel : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Protected Friend Overridable Function Cancel (executionContext As ActivityExecutionContext) As ActivityExecutionStatus

Parameters

executionContext
ActivityExecutionContext

The ActivityExecutionContext that contains the instance to cancel.

Returns

The status at the end of the operation that determines whether the activity remains in the canceling state or transitions to the closed state.

Applies to