WorkflowRuntime.GetWorkflow(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the workflow instance that has the specified Guid.
public:
System::Workflow::Runtime::WorkflowInstance ^ GetWorkflow(Guid instanceId);
public System.Workflow.Runtime.WorkflowInstance GetWorkflow(Guid instanceId);
member this.GetWorkflow : Guid -> System.Workflow.Runtime.WorkflowInstance
Public Function GetWorkflow (instanceId As Guid) As WorkflowInstance
Parameters
Returns
The WorkflowInstance that has the specified Guid.
Exceptions
The workflow runtime is not started.
Remarks
If instanceId
specifies a workflow instance that is not currently in memory, the workflow instance is loaded into memory and scheduled for execution. For example, after a workflow instance is aborted, you can call GetWorkflow to load the workflow instance back into memory. In this case, the last persisted state of the workflow instance is loaded into memory by the persistence service.