Edit

Share via


EventDrivenActivity Constructors

Definition

Initializes a new instance of the EventDrivenActivity class.

Overloads

EventDrivenActivity()

Initializes a new instance of the EventDrivenActivity class.

EventDrivenActivity(String)

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

EventDrivenActivity()

Initializes a new instance of the EventDrivenActivity class.

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

Examples

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

this.eventDriven1 = new System.Workflow.Activities.EventDrivenActivity();
Me.eventDriven1 = New System.Workflow.Activities.EventDrivenActivity()

See also

Applies to

EventDrivenActivity(String)

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

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

Parameters

name
String

The user-identified name of the activity.

Applies to