WhileActivity.Condition Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om