StateActivity Constructors
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.
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.