Export (0) Print
Expand All

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
/** @attribute SerializableAttribute() */ 
public class PersistenceException extends SystemException
public class PersistenceException extends SystemException
Not applicable.

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft