UnknownExceptionAction 枚举

定义

警告

此 API 现已过时。

指定持久性服务将如何处理未知异常。Specifies how a durable service will handle an unknown exception.

public enum class UnknownExceptionAction
[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public enum UnknownExceptionAction
type UnknownExceptionAction = 
Public Enum UnknownExceptionAction
继承
UnknownExceptionAction
属性

字段

AbortInstance 1

服务将突然停止,并将现有的状态信息保留在其持久性存储区中。The service will abruptly stop and leave existing state information in its persistence store. 在引发未知异常的操作期间对实例状态所进行的任何更改都将会丢失。Any changes to instance state during the operation which threw the unknown exception will be lost.

TerminateInstance 0

服务将关闭所有通道并将其状态信息从其持久性存储区中移除。The service will close all channels and remove its state information from its persistence store.

注解

默认情况下, 在创建持久性服务时, UnknownExceptionAction会将设置为 TerminateInstance。By default, when a durable service is created, UnknownExceptionAction is set to TerminateInstance.

适用于