Activity.Cancel(ActivityExecutionContext) 메서드

정의

현재 실행 중인 활동의 실행을 취소하기 위해 워크플로 런타임에서 호출됩니다.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

매개 변수

executionContext
ActivityExecutionContext

취소할 인스턴스를 포함하는 ActivityExecutionContext입니다.The ActivityExecutionContext that contains the instance to cancel.

반환

활동이 Canceling 상태로 남아 있을지, Closed 상태로 전환될지 결정하는 작업 끝의 상태입니다.The status at the end of the operation that determines whether the activity remains in the canceling state or transitions to the closed state.

적용 대상