StateMachineWorkflowInstance.SetState Method
Definition
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.
Overloads
SetState(String) |
Provides a transition to a specified StateActivity using the name of the StateActivity. |
SetState(StateActivity) |
Provides a transition to a specified StateActivity. |
SetState(String)
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
SetState(StateActivity)
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).