WorkflowInstance.WorkflowRuntime Property

 

Gets the WorkflowRuntime for this workflow instance.

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

public WorkflowRuntime WorkflowRuntime { get; }

Property Value

Type: System.Workflow.Runtime.WorkflowRuntime

A WorkflowRuntime that represents the execution environment in which this workflow instance is running.

The following example demonstrates accessing the executing WorkflowRuntime of a WorkflowInstance object.

// Create the main workflow runtime
WorkflowRuntime runtime = new WorkflowRuntime();
// Create a workflow instance
WorkflowInstance workflowInstance = runtime.CreateWorkflow(typeof(Workflow1));
// Obtain a reference to the instance's parent runtime
WorkflowRuntime runtime2 = workflowInstance.WorkflowRuntime;

.NET Framework
Available since 3.0
Return to top
Show: