StateMachineWorkflow Property

StateMachineWorkflowInstance.StateMachineWorkflow Property


Gets the latest definition of the StateMachineWorkflowActivity.

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

public StateMachineWorkflowActivity StateMachineWorkflow { get; }

Exception Condition

If the workflow has already completed, the current StateMachineWorkflowActivity cannot be retrieved, so the previous definition is retrieved.

This property only returns a copy of the workflow definition and never the live instance tree. Therefore, the activity tree that is returned by this property cannot be used to query for run-time values.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft