Επεξεργασία

Κοινή χρήση μέσω


WhileActivity.Condition Property

Definition

Gets or sets a condition that determines whether the WhileActivity should run or finish.

public:
 property System::Workflow::ComponentModel::ActivityCondition ^ Condition { System::Workflow::ComponentModel::ActivityCondition ^ get(); void set(System::Workflow::ComponentModel::ActivityCondition ^ value); };
public System.Workflow.ComponentModel.ActivityCondition Condition { get; set; }
member this.Condition : System.Workflow.ComponentModel.ActivityCondition with get, set
Public Property Condition As ActivityCondition

Property Value

When the RuleCondition property evaluates to true, the WhileActivity continues to run. When the RuleCondition evaluates to false, the WhileActivity finishes.

Remarks

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.

workflowRuntime.WorkflowUnloaded += OnWorkflowUnload;
AddHandler currentWorkflowRuntime.WorkflowUnloaded, AddressOf OnWorkflowUnloaded

Applies to

See also