ConditionedActivityGroup.UntilCondition 属性

定义

获取或设置一个值,该值指示 ConditionedActivityGroup 何时完成。

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

属性值

确定 ConditionedActivityGroup 是否应完成的条件。

示例

下面的代码示例演示如何将 UntilCondition 设置为 null,这意味着 BookingCAGConditionedActivityGroup 类永远不会完成。 此代码示例是 SimpleCAGWorkflow.Designer.cs 文件中 ConditionedActivityGroup SDK 示例的一部分。 有关详细信息,请参阅 Using ConditionedActivityGroup

this.BookingCag.Activities.Add(this.Car);
this.BookingCag.Activities.Add(this.Airline);
this.BookingCag.Name = "BookingCag";
codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CarCondition);
Me.BookingCag.Activities.Add(Me.Car)
Me.BookingCag.Activities.Add(Me.Airline)
Me.BookingCag.Name = "BookingCag"
AddHandler codecondition1.Condition, AddressOf CarCondition

适用于

另请参阅

  • 使用 ConditionedActivityGroup
  • 在工作流中使用条件