ParallelActivity Constructors

Definition

Initializes a new instance of the ParallelActivity class.

Overloads

ParallelActivity()

Initializes a new instance of the ParallelActivity class.

ParallelActivity(String)

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

ParallelActivity()

Initializes a new instance of the ParallelActivity class.

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

Examples

The following code example shows how to create a new instance of the ParallelActivity class, add the ParallelActivity class to the WhileActivity class, and add two 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.

workflowRuntime.WorkflowLoaded += OnWorkflowLoad;
AddHandler currentWorkflowRuntime.WorkflowLoaded, AddressOf OnWorkflowLoaded

Applies to

ParallelActivity(String)

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

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

Parameters

name
String

The user-defined name of the activity.

Applies to