Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft