ActivityExecutionContextManager.CompleteExecutionContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marks an execution context as completed.
Overloads
CompleteExecutionContext(ActivityExecutionContext) |
Marks an execution context as completed. |
CompleteExecutionContext(ActivityExecutionContext, Boolean) |
Marks an execution context as completed. |
CompleteExecutionContext(ActivityExecutionContext)
Marks an execution context as completed.
public:
void CompleteExecutionContext(System::Workflow::ComponentModel::ActivityExecutionContext ^ childContext);
public void CompleteExecutionContext (System.Workflow.ComponentModel.ActivityExecutionContext childContext);
member this.CompleteExecutionContext : System.Workflow.ComponentModel.ActivityExecutionContext -> unit
Public Sub CompleteExecutionContext (childContext As ActivityExecutionContext)
Parameters
- childContext
- ActivityExecutionContext
The designated ActivityExecutionContext.
Exceptions
childContext
is a null reference (Nothing
in Visual Basic).
childContext
is not contained in this instance's ExecutionContexts.
Remarks
The workflow runtime enables this operation to succeed only if the activity in the execution context being completed is in the Closed
state. The forcePersist
Boolean
parameter indicates whether the completed execution context should be persisted so that it is available for retrieval at a later time (for example, for compensation to run).
The overload of CompleteExecutionContext that does not have the forcePersist
parameter effectively uses a value of false
, so that by default, completed execution contexts are not persisted.
Applies to
CompleteExecutionContext(ActivityExecutionContext, Boolean)
Marks an execution context as completed.
public:
void CompleteExecutionContext(System::Workflow::ComponentModel::ActivityExecutionContext ^ childContext, bool forcePersist);
public void CompleteExecutionContext (System.Workflow.ComponentModel.ActivityExecutionContext childContext, bool forcePersist);
member this.CompleteExecutionContext : System.Workflow.ComponentModel.ActivityExecutionContext * bool -> unit
Public Sub CompleteExecutionContext (childContext As ActivityExecutionContext, forcePersist As Boolean)
Parameters
- childContext
- ActivityExecutionContext
The designated ActivityExecutionContext.
- forcePersist
- Boolean
Boolean
that indicates whether the completed context will be persisted.
Exceptions
childContext
is a null reference (Nothing
in Visual Basic).
childContext
is not contained in this instance's ExecutionContexts.
Remarks
The workflow runtime enables this operation to succeed only if the activity in the execution context being completed is in the Closed
state. The forcePersist
Boolean
parameter indicates whether the completed execution context should be persisted so that it is available for retrieval at a later time (for example, for compensation to run).
The overload of CompleteExecutionContext that does not have the forcePersist
parameter effectively uses a value of false
, so that by default, completed execution contexts are not persisted.