StateActivity Constructors

Definition

Initializes a new instance of the StateActivity class.

Overloads

StateActivity()

Initializes a new instance of the StateActivity class.

StateActivity(String)

Initializes a new instance of the StateActivity class using the name of the activity.

StateActivity()

Initializes a new instance of the StateActivity class.

public:
 StateActivity();
public StateActivity ();
Public Sub New ()

Examples

The following code example shows how to create a new instance of the StateActivity class. This code example is part of the SimpleStateMachineWorkflow SDK Sample from the StateMachineWorkflow.cs file. For more information, see Simple State Machine.

this.StartState = new System.Workflow.Activities.StateActivity();
Me.StartState = New System.Workflow.Activities.StateActivity()

See also

Applies to

StateActivity(String)

Initializes a new instance of the StateActivity class using the name of the activity.

public:
 StateActivity(System::String ^ name);
public StateActivity (string name);
new System.Workflow.Activities.StateActivity : string -> System.Workflow.Activities.StateActivity
Public Sub New (name As String)

Parameters

name
String

The user-defined name of the activity.

See also

Applies to