StateMachineWorkflowInstance.SetState 方法

定义

提供到 StateActivity 的转换。Provides a transition to a StateActivity.

重载

SetState(String)

使用 StateActivity 的名称提供到指定的 StateActivity 的转换。Provides a transition to a specified StateActivity using the name of the StateActivity.

SetState(StateActivity)

提供到指定的 StateActivity 的转换。Provides a transition to a specified StateActivity.

SetState(String)

使用 StateActivity 的名称提供到指定的 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)

参数

targetStateName
String

要转换到的 StateActivity 的名称。The name of the StateActivity to transition to.

例外

targetStateName 为空引用(在 Visual Basic 中为 Nothing)。targetStateName is a null reference (Nothing in Visual Basic).

由 指定的 为空引用 ()。The StateActivity specified by targetStateName is a null reference (Nothing).

适用于

SetState(StateActivity)

提供到指定的 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)

参数

targetState
StateActivity

要转换到的 StateActivityThe StateActivity to transition to.

例外

targetState 为空引用(在 Visual Basic 中为 Nothing)。targetState is a null reference (Nothing in Visual Basic).

适用于