WorkflowInstance.OnRequestAbort(Exception) 方法

定義

由工作流程執行階段呼叫,以通知主機已要求工作流程執行個體中止作業。Called by the workflow runtime to notify the host that an abort operation has been requested for the workflow instance.

protected public:
 abstract void OnRequestAbort(Exception ^ reason);
protected internal abstract void OnRequestAbort (Exception reason);
abstract member OnRequestAbort : Exception -> unit
Protected Friend MustOverride Sub OnRequestAbort (reason As Exception)

參數

reason
Exception

中止工作流程執行個體的原因。The reason for aborting the workflow instance.

備註

一旦呼叫 OnRequestAbort,大多數 WorkflowInstance.WorkflowInstanceControl API (Abort 除外) 都會擲回 InvalidOperationExceptionOnce OnRequestAbort is called, most WorkflowInstance.WorkflowInstanceControl APIs except Abort will throw an InvalidOperationException. 預期呼叫 OnRequestAbort 之後,主機的趨勢將朝向可以滿足中止的狀態。It is expected that after OnRequestAbort is called a host will trend toward a state in which it can satisfy the abort.

適用於