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.

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

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

.NET Framework
Available since 3.0
Return to top
Show: