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();
public SequenceActivity ();
Public Sub New ()

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);
}
Shared Sub OnExceptionNotHandled(ByVal sender As Object, ByVal e As System.Workflow.Runtime.ServicesExceptionNotHandledEventArgs)
    Console.WriteLine("Unhandled Workflow Exception ")
    Console.WriteLine("  Type: " + e.GetType().ToString())
    Console.WriteLine("  Message: " + e.Exception.Message)
End Sub

See also

Applies to

SequenceActivity(String)

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

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

Parameters

name
String

The user-defined name of the activity.

See also

Applies to