SequenceActivity Constructors

Definition

Initializes a new instance of the SequenceActivity class.

Overloads

SequenceActivity()

Initializes a new instance of the SequenceActivity class.

SequenceActivity(String)

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

SequenceActivity()

Initializes a new instance of the SequenceActivity class.

public SequenceActivity ();

Examples

The following code example demonstrates how to create a new instance of the SequenceActivity class and add the SequenceActivity classes to the ParallelActivity class. This code example is part of the WhileAndParallel SDK Sample from the WhileAndParallelWorkflow.Designer.cs file. For more information, see Using While and Parallel.

static void OnExceptionNotHandled(object sender, ServicesExceptionNotHandledEventArgs e)
{
    Console.WriteLine("Unhandled Workflow Exception ");
    Console.WriteLine("  Type: " + e.GetType().ToString());
    Console.WriteLine("  Message: " + e.Exception.Message);
}

See also

Applies to

.NET Framework 4.8.1 والإصدارات الأخرى
منتج الإصدارات
.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

SequenceActivity(String)

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

public SequenceActivity (string name);

Parameters

name
String

The user-defined name of the activity.

See also

Applies to

.NET Framework 4.8.1 والإصدارات الأخرى
منتج الإصدارات
.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