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).
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про