SqlWorkflowPersistenceService.LoadCompletedContextActivity 方法

定义

从数据库中检索指定的已完成范围。

protected public:
 override System::Workflow::ComponentModel::Activity ^ LoadCompletedContextActivity(Guid id, System::Workflow::ComponentModel::Activity ^ outerActivity);
protected internal override System.Workflow.ComponentModel.Activity LoadCompletedContextActivity (Guid id, System.Workflow.ComponentModel.Activity outerActivity);
override this.LoadCompletedContextActivity : Guid * System.Workflow.ComponentModel.Activity -> System.Workflow.ComponentModel.Activity
Protected Friend Overrides Function LoadCompletedContextActivity (id As Guid, outerActivity As Activity) As Activity

参数

id
Guid

范围 Activity 的 Guid

outerActivity
Activity

包含范围 Activity 的 Activity

返回

表示已完成范围的 Activity

例外

数据库中找不到匹配 id 的范围。

注解

工作流运行时引擎在补偿期间使用 LoadCompletedContextActivityLoadCompletedContextActivity 只应由工作流运行时引擎调用。

适用于