InstanceCompletionAction InstanceCompletionAction InstanceCompletionAction InstanceCompletionAction Enum

定义

包含一些选项,这些选项指定持久性提供程序在实例完成之后是应将实例的状态信息保留在持久性存储中,还是应将该信息删除。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.

public enum class InstanceCompletionAction
public enum InstanceCompletionAction
type InstanceCompletionAction = 
Public Enum InstanceCompletionAction
继承
InstanceCompletionActionInstanceCompletionActionInstanceCompletionActionInstanceCompletionAction

字段

DeleteAll DeleteAll DeleteAll DeleteAll 1

指定在工作流实例完成之后必须从持久性存储中删除工作流实例的数据和元数据。Specifies that data and metadata for a workflow instance must be deleted from the persistence store after the workflow instance completes.

DeleteNothing DeleteNothing DeleteNothing DeleteNothing 0

指定必须将工作流实例的数据和元数据保留在持久性数据库中,即使在工作流实例完成之后也是如此。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.NET Framework 4 附带了 SQL 持久性提供程序作为 SQL 工作流实例存储的构成,它是 InstanceStore 类的具体实现,并用于将状态信息保留到 SQL Server 数据库中。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. 如果将InstanceCompletionAction与服务关联的SqlWorkflowInstanceStore服务行为的属性设置为 DeleteNothing, 则 SQL 永久性提供程序会保留该实例在 SQL Server 持久性数据库中的实例状态信息, 即使在实例完成, 当InstanceCompletionAction特性设置为 DeleteAll (默认值) 时, 持久性提供程序将在实例完成时删除所有实例状态信息。When the InstanceCompletionAction 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 InstanceCompletionAction attribute is set to DeleteAll (which is the default value), the persistence provider deletes all the instance state information when the instance completes.

适用于