SqlWorkflowPersistenceService.LoadCompletedContextActivity Method

Definition

Retrieves the specified completed scope from the database.

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

Parameters

id
Guid

The Guid of the scope activity.

outerActivity
Activity

The Activity that encloses the scope activity.

Returns

An Activity that represents the completed scope.

Exceptions

A scope that matches id could not be found in the database.

Remarks

The workflow run-time engine uses LoadCompletedContextActivity during compensation. LoadCompletedContextActivity should only be called by the workflow run-time engine.

Applies to