Runs a set of child activities at the same time. This class cannot be inherited.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
The order in which child activities are run is non-deterministic.
Only one activity can run at a time.
The only finishes when all children are complete.
The is especially useful when there are one or more blocking activities, such as the DelayActivity activity, in one or more of the branches. In this scenario, the actually switches to a different branch when the DelayActivity is blocked. If there are no blocking activities in any one of the branches then the activity uses a non-deterministic sequence.
The following code example shows how to create a new instance of the class, add the class to the WhileActivity class, and add two SequenceActivity classes to the 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.
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.