StateMachineWorkflowInstance.SetState Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a transition to a StateActivity.
SetState(String) |
Provides a transition to a specified StateActivity using the name of the StateActivity. |
SetState(StateActivity) |
Provides a transition to a specified StateActivity. |
Provides a transition to a specified StateActivity using the name of the StateActivity.
public:
void SetState(System::String ^ targetStateName);
public void SetState(string targetStateName);
member this.SetState : string -> unit
Public Sub SetState (targetStateName As String)
Parameters
- targetStateName
- String
The name of the StateActivity to transition to.
Exceptions
targetStateName
is a null reference (Nothing
in Visual Basic).
The StateActivity specified by targetStateName
is a null reference (Nothing
).
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Provides a transition to a specified StateActivity.
public:
void SetState(System::Workflow::Activities::StateActivity ^ targetState);
public void SetState(System.Workflow.Activities.StateActivity targetState);
member this.SetState : System.Workflow.Activities.StateActivity -> unit
Public Sub SetState (targetState As StateActivity)
Parameters
- targetState
- StateActivity
The StateActivity to transition to.
Exceptions
targetState
is a null reference (Nothing
in Visual Basic).
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: