WorkflowCreationContext.OnEndWorkflowCompleted(IAsyncResult) 方法

定义

完成用于通知与此 WorkflowCreationContext 关联的工作流实例完成的异步操作。

protected public:
 virtual void OnEndWorkflowCompleted(IAsyncResult ^ result);
protected internal virtual void OnEndWorkflowCompleted (IAsyncResult result);
abstract member OnEndWorkflowCompleted : IAsyncResult -> unit
override this.OnEndWorkflowCompleted : IAsyncResult -> unit
Protected Friend Overridable Sub OnEndWorkflowCompleted (result As IAsyncResult)

参数

result
IAsyncResult

异步操作的状态。

示例

下面的示例演示 OnEndWorkflowCompleted 方法的简单实现。 请注意,调用了基类 OnAbort 方法。

protected override void OnAbort()
{
    Console.WriteLine("InstanceId :" + InstanceId + " OnBeginWorkflowAborted");
    base.OnAbort();
}

适用于