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^)
.NET Framework (current version)
Provides a transition to a specified StateActivity using the name of the StateActivity.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
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
Available since 3.0
Show: