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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기