This documentation is archived and is not being maintained.

ExecutionType Enumeration

Specifies the execution mode for activities.

Namespace:  System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

'Declaration
Public Enumeration ExecutionType
'Usage
Dim instance As ExecutionType

Member nameDescription
SequenceExecutes activities in sequential order. Each activity is executed in turn, after the previous activity has finished running.
ParallelExecutes activities in parallel.

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, see Using Replicator.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: