共用方式為


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 範例的一部分。 如需詳細資訊,請參閱使用 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

適用於

另請參閱