StateActivity.Cancel(ActivityExecutionContext) 方法

定义

取消执行 StateActivity

protected:
 override System::Workflow::ComponentModel::ActivityExecutionStatus Cancel(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext);
protected override System.Workflow.ComponentModel.ActivityExecutionStatus Cancel (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
override this.Cancel : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Protected Overrides Function Cancel (executionContext As ActivityExecutionContext) As ActivityExecutionStatus

参数

executionContext
ActivityExecutionContext

活动的执行上下文。

返回

正在运行的工作流实例中的 Activity 的当前状态。

适用于

另请参阅