WhileActivity.Condition Property
Gets or sets a condition that determines whether the WhileActivity should run or finish.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
Property Value
Type: System.Workflow.ComponentModel.ActivityConditionWhen the RuleCondition property evaluates to true, the WhileActivity continues to run. When the RuleCondition evaluates to false, the WhileActivity finishes.
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 Condition 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.
Code example is incorrect
The code sample does not apply to the current documentation.
- 10/7/2010
- shschaefer