Edit

Share via


DelayActivity Constructors

Definition

Initializes a new instance of the DelayActivity class.

Overloads

DelayActivity()

Initializes a new instance of the DelayActivity class.

DelayActivity(String)

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

DelayActivity()

Initializes a new instance of the DelayActivity class.

public DelayActivity();

Examples

The following code example demonstrates how to initialize a new instance of the DelayActivity 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();

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DelayActivity(String)

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

public DelayActivity(string name);

Parameters

name
String

The user-defined name of the activity.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1