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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za