InstanceCompletionAction Enumeration

InstanceCompletionAction Enumeration

.NET Framework (current version)
 

Contains options that specify whether the persistence provider should keep or delete the state information for an instance in the persistence store after the instance completes.

Namespace:   System.Activities.DurableInstancing
Assembly:  System.Activities.DurableInstancing (in System.Activities.DurableInstancing.dll)

Public Enumeration InstanceCompletionAction

Member nameDescription
DeleteAll

Specifies that data and metadata for a workflow instance must be deleted from the persistence store after the workflow instance completes.

DeleteNothing

Specifies that data and metadata for a workflow instance must be kept in the persistence database even after the workflow instance completes.

.NET Framework 4 ships with a SQL persistence provider as a constituent of the SQL Workflow Instance Store, which is a concrete implementation of the T:System.Runtime.Persistence.InstanceStore class and is used to persist state information in to the SQL Server database. When the InstanceComplectionAction attribute is set to DeleteNothing for the SqlWorkflowInstanceStore service behavior associated with a service, the SQL persistence provider keeps the instance state information for the instance in the SQL Server persistence database even after the instance completes, and when the InstanceComplectionAction attribute is set to DeleteAll (which is the default value), the persistence provider deletes all the instance state information when the instance completes.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft