Activity.Cancel(ActivityExecutionContext) Methode

Definition

Wird von der Workflowlaufzeit aufgerufen, um die Ausführung einer derzeit ausgeführten Aktivität abzubrechen.

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

Parameter

executionContext
ActivityExecutionContext

Die ActivityExecutionContext Instanz, die abgebrochen werden soll.

Gibt zurück

Der Status am Ende des Vorgangs, der bestimmt, ob die Aktivität im Abbruchzustand oder übergänge zum geschlossenen Zustand verbleibt.

Gilt für: