DurableServiceAttribute.UnknownExceptionAction 属性

定义

获取或设置与持久性服务关联的 UnknownExceptionAction 枚举值。

public:
 property System::ServiceModel::Description::UnknownExceptionAction UnknownExceptionAction { System::ServiceModel::Description::UnknownExceptionAction get(); void set(System::ServiceModel::Description::UnknownExceptionAction value); };
public System.ServiceModel.Description.UnknownExceptionAction UnknownExceptionAction { get; set; }
member this.UnknownExceptionAction : System.ServiceModel.Description.UnknownExceptionAction with get, set
Public Property UnknownExceptionAction As UnknownExceptionAction

属性值

UnknownExceptionAction

一个 UnknownExceptionAction 枚举值。

注解

当实例化 DurableServiceAttribute 时,它将此属性值设置为 TerminateInstance。 这意味着每当持久性服务遇到未知异常时,将终止服务实例并从持久性存储区中删除所有状态信息。

适用于