Edit

Share via


WorkflowInstance.GetWorkflowDefinition Method

Definition

Retrieves the root activity for this workflow instance.

public:
 System::Workflow::ComponentModel::Activity ^ GetWorkflowDefinition();
public System.Workflow.ComponentModel.Activity GetWorkflowDefinition();
member this.GetWorkflowDefinition : unit -> System.Workflow.ComponentModel.Activity
Public Function GetWorkflowDefinition () As Activity

Returns

An Activity object.

Remarks

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.

Applies to