WorkflowInstance.WorkflowRuntime Property
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.
Gets the WorkflowRuntime for this workflow instance.
public:
property System::Workflow::Runtime::WorkflowRuntime ^ WorkflowRuntime { System::Workflow::Runtime::WorkflowRuntime ^ get(); };
public System.Workflow.Runtime.WorkflowRuntime WorkflowRuntime { get; }
member this.WorkflowRuntime : System.Workflow.Runtime.WorkflowRuntime
Public ReadOnly Property WorkflowRuntime As WorkflowRuntime
Property Value
A WorkflowRuntime that represents the execution environment in which this workflow instance is running.
Examples
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;
' Create the main workflow runtime
Dim runtime As New WorkflowRuntime()
' Create a workflow instance
Dim workflowInstance As WorkflowInstance = runtime.CreateWorkflow(GetType(Workflow1))
' Obtain a reference to the instance's parent runtime
Dim runtime2 As WorkflowRuntime = workflowInstance.WorkflowRuntime
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.