Export (0) Print
Expand All

InstanceCompletionAction Enumeration

.NET Framework 4.6 and 4.5

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 enum InstanceCompletionAction

Member nameDescription
DeleteAllSpecifies that data and metadata for a workflow instance must be deleted from the persistence store after the workflow instance completes.
DeleteNothingSpecifies 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 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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft