SqlWorkflowPersistenceService.LoadCompletedContextActivity Method

Definition

Retrieves the specified completed scope from the database.

C#
protected internal override System.Workflow.ComponentModel.Activity LoadCompletedContextActivity(Guid id, System.Workflow.ComponentModel.Activity outerActivity);

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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1