HandleExternalEventActivity.Cancel(ActivityExecutionContext) 方法

定义

取消事件的处理。Cancels the handling of the event.

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

参数

executionContext
ActivityExecutionContext

表示 ActivityExecutionContext 的执行环境的 ActivityThe ActivityExecutionContext that represents the execution environment of the Activity.

返回

ActivityExecutionStatus

请求的操作结束时 ActivityExecutionContextHandleExternalEventActivityThe ActivityExecutionContext of the HandleExternalEventActivity at the end of the requested operation.

适用于

另请参阅