.NET Framework Class Library
ExecutionType Enumeration
Specifies the execution mode for activities.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
Syntax
Visual Basic
Public Enumeration ExecutionType
C#
public enum ExecutionType
Visual C++
public enum class ExecutionType
F#
type ExecutionType
Members
| Member name | Description | |
|---|---|---|
| Sequence | Executes activities in sequential order. Each activity is executed in turn, after the previous activity has finished running. | |
| Parallel | Executes activities in parallel. |
Examples
The following code example shows how to set the execution mode for activities using the ExecutionType enumeration. This code example is part of the Replicator SDK Sample from the Simplereplicatorworkflow.cs file. For more information, seeUsing Replicator.
Visual Basic
Me.CanModifyActivities = True Dim activitybind1 As New System.Workflow.ComponentModel.ActivityBind() Me.throwActivity1 = New System.Workflow.ComponentModel.ThrowActivity() activitybind1.Name = "ThrowWorkflow" activitybind1.Path = "ThrownException" ' ' throwActivity1 ' Me.throwActivity1.Name = "throwActivity1" Me.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, activitybind1) ' ' ThrowWorkflow ' Me.Activities.Add(Me.throwActivity1) Me.Name = "ThrowWorkflow" Me.CanModifyActivities = False
C#
this.CanModifyActivities = true; System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind(); this.throwActivity1 = new System.Workflow.ComponentModel.ThrowActivity(); activitybind1.Name = "ThrowWorkflow"; activitybind1.Path = "ThrownException"; // // throwActivity1 // this.throwActivity1.Name = "throwActivity1"; this.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); // // ThrowWorkflow // this.Activities.Add(this.throwActivity1); this.Name = "ThrowWorkflow"; this.CanModifyActivities = false;
Version Information
.NET Framework
Supported in: 4, 3.5, 3.0Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also