Activity.Cancel(ActivityExecutionContext) Método

Definición

Llamado por el tiempo de ejecución de flujo de trabajo para cancelar la ejecución de una actividad que está actualmente en ejecución.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

Parámetros

executionContext
ActivityExecutionContext

ActivityExecutionContext que contiene la instancia que se va a cancelar.The ActivityExecutionContext that contains the instance to cancel.

Devoluciones

ActivityExecutionStatus

Estado al final de la operación que determina si la actividad permanece en estado de cancelación o bien, realiza la transición al estado cerrado.The status at the end of the operation that determines whether the activity remains in the canceling state or transitions to the closed state.

Se aplica a