Activity.Cancel(ActivityExecutionContext) Metod

Definition

Anropas av arbetsflödeskörningen för att avbryta körningen av en aktivitet som körs för närvarande.

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

Parametrar

executionContext
ActivityExecutionContext

Som ActivityExecutionContext innehåller den instans som ska avbrytas.

Returer

Statusen i slutet av åtgärden som avgör om aktiviteten förblir i avbrutet tillstånd eller övergångar till det stängda tillståndet.

Gäller för