SqlWorkflowPersistenceService.LoadCompletedContextActivity Method (Guid, Activity)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the specified completed scope from the database.

Namespace:   System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

protected internal override Activity LoadCompletedContextActivity(
	Guid id,
	Activity outerActivity
)

Parameters

id
Type: System.Guid

The Guid of the scope activity.

outerActivity
Type: System.Workflow.ComponentModel.Activity

The Activity that encloses the scope activity.

Return Value

Type: System.Workflow.ComponentModel.Activity

An Activity that represents the completed scope.

Exception Condition
InvalidOperationException

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

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

.NET Framework
Available since 3.0
Return to top
Show: