Export (0) Print
Expand All

WorkflowOwnershipException Class

The exception that is thrown when the workflow runtime engine attempts to load a workflow instance that is currently loaded by another workflow runtime engine instance. Additionally, this exception is thrown when the workflow runtime engine attempts to save a workflow after the ownership timeout that was specified while loading the workflow has expired.

Namespace: System.Workflow.Runtime
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

[SerializableAttribute] 
public class WorkflowOwnershipException : Exception
/** @attribute SerializableAttribute() */ 
public class WorkflowOwnershipException extends Exception
SerializableAttribute 
public class WorkflowOwnershipException extends Exception
Not applicable.

The WorkflowOwnershipException is used by persistence services which support the capability for multiple applications to access the same database. In such an environment, an instance of the workflow runtime may try to load a workflow that is already loaded by another instance of the workflow runtime engine. For example, the SQLWorkflowPersistenceService class throws the WorkflowOwnershipException when this situation occurs.

If you implement a persistence service that throws the WorkflowOwnershipException you should provide the Guid of the workflow instance for which the exception occurs by using an appropriate constructor for the class or setting the InstanceId property before you throw the exception.

System.Object
   System.Exception
    System.Workflow.Runtime.WorkflowOwnershipException

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

ADD
Show:
© 2014 Microsoft