WorkflowUnhandledExceptionBehavior Class
A service behavior that enables you to specify the action to take when an unhandled exception occurs within a workflow service.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
| Name | Description | |
|---|---|---|
![]() | WorkflowUnhandledExceptionBehavior() | Initializes a new instance of the WorkflowUnhandledExceptionBehavior class. |
| Name | Description | |
|---|---|---|
![]() | Action | Gets or sets the action to take when an unhandled exception occurs. |
| Name | Description | |
|---|---|---|
![]() | AddBindingParameters(ServiceDescription^, ServiceHostBase^, Collection<ServiceEndpoint^>^, BindingParameterCollection^) | Implements the IServiceBehavior::AddBindingParameters method to support the behavior. |
![]() | ApplyDispatchBehavior(ServiceDescription^, ServiceHostBase^) | Implements the IServiceBehavior::ApplyDispatchBehavior method to support the behavior. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Validate(ServiceDescription^, ServiceHostBase^) | Implements the IServiceBehavior::Validate method to support the behavior. |
Both OnUnhandledException and WorkflowUnhandledExceptionBehavior dictate the behavior of the runtime when an exception is not handled in the workflow; however, WorkflowUnhandledExceptionBehavior has the option of leaving a suspended workflow in the persistence store, while OnUnhandledException does not. The reason for this is that what happens to a suspended workflow is host-specific, and WorkflowApplication is not. To implement this functionality using WorkflowApplication, create a custom PersistenceParticipant that has this behavior.
For an example of how to use this behavior see Workflow Service Host Extensibility.
Available since 4.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


