WorkflowInstance.GetWorkflowDefinition Method ()
Retrieves the root activity for this workflow instance.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
You can use the root activity to navigate the activity hierarchy of the workflow.
This method is not thread safe, so the host should synchronize its calls to this method.
The following example demonstrates retrieving the workflow definition from a workflow instance. This example is from the Ordering State Machine SDK sample, from the Mainform.cs file. For more information, see the Ordering State Machine Sample.
Available since 3.0