Export (0) Print
Expand All

StateMachineWorkflowInstance.SetState Method (String)

Provides a transition to a specified StateActivity using the name of the StateActivity.

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

public void SetState(
	string targetStateName
)

Parameters

targetStateName
Type: System.String

The name of the StateActivity to transition to.

ExceptionCondition
ArgumentNullException

targetStateName is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The StateActivity specified by targetStateName is a null reference (Nothing).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft