Gets or sets a condition that determines whether the WhileActivity should run or finish.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
The following code example demonstrates how to create a new instance of the WhileActivity class, add the ParallelActivity class to the WhileActivity class, and set the property. This code example is part of the WhileAndParallel SDK Sample from the WhileAndParallelWorkflow.Designer.cs file. For more information, see Using While and Parallel.