[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a workflow instance.
Namespace: System.Activities
Assembly: System.Activities (in System.Activities.dll)
Public NotInheritable Class WorkflowInstance _ Implements IWorkflowHost, IExtensionHost
Dim instance As WorkflowInstance
public sealed class WorkflowInstance : IWorkflowHost, IExtensionHost
public ref class WorkflowInstance sealed : IWorkflowHost, IExtensionHost
public final class WorkflowInstance implements IWorkflowHost, IExtensionHost
[<SealedAttribute>] type WorkflowInstance = class interface IWorkflowHost interface IExtensionHost end
The WorkflowInstance class exposes methods and properties that can be used to control the execution of a workflow instance. It is essentially a proxy to the actual workflow instance used by the workflow run-time engine. A host or a service can instruct the workflow run-time engine to perform actions on a workflow instance by calling the appropriate methods that are contained in the WorkflowInstance class. If the requested action is not valid, for example, if the host calls Load() on a workflow instance that has already completed, the workflow run-time engine raises an appropriate exception.
The runtime is designed to trust the code hosting it. WorkflowInstance and the associated APIs, do whatever the host calls for under the assumption that the host does not intend to do harm to itself. This is contrary to a design where the host is not completely trusted and therefore the runtime is designed to have hard throttles against workflow size, total memory use, and other throttles.
System.Activities.WorkflowInstance
Windows 7, Windows Vista, Windows XP SP2, 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.