This documentation is archived and is not being maintained.

PersistenceException Class

The exception that is thrown when the persistence service cannot fulfill a request.

Namespace:  System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public class PersistenceException : SystemException

The SqlWorkflowPersistenceService throws a PersistenceException if it cannot complete a request to commit either a completed scope or the workflow instance state to its database.

If you implement a persistence service by deriving from the WorkflowPersistenceService class or the SqlWorkflowPersistenceService class, you can throw the PersistenceException with an appropriate message to indicate any error condition encountered by your service that prevents it from fulfilling a request made by the workflow runtime engine.

See the WorkflowPersistenceService class for more information.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0