IfElseActivity.AddBranch 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將新分支加入至 IfElseActivity。
多載
AddBranch(ICollection<Activity>) |
使用要加入至新分支的新活動集合,將新分支加入至 IfElseActivity。 |
AddBranch(ICollection<Activity>, ActivityCondition) |
使用要加入至新分支的新活動集合,將新分支加入至 IfElseActivity。 |
AddBranch(ICollection<Activity>)
使用要加入至新分支的新活動集合,將新分支加入至 IfElseActivity。
public:
System::Workflow::Activities::IfElseBranchActivity ^ AddBranch(System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^> ^ activities);
public System.Workflow.Activities.IfElseBranchActivity AddBranch (System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity> activities);
member this.AddBranch : System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity> -> System.Workflow.Activities.IfElseBranchActivity
Public Function AddBranch (activities As ICollection(Of Activity)) As IfElseBranchActivity
參數
- activities
- ICollection<Activity>
要加入至新分支的活動集合。
傳回
具有新分支的已更新 IfElseBranchActivity。
另請參閱
適用於
AddBranch(ICollection<Activity>, ActivityCondition)
使用要加入至新分支的新活動集合,將新分支加入至 IfElseActivity。
public:
System::Workflow::Activities::IfElseBranchActivity ^ AddBranch(System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^> ^ activities, System::Workflow::ComponentModel::ActivityCondition ^ branchCondition);
public System.Workflow.Activities.IfElseBranchActivity AddBranch (System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity> activities, System.Workflow.ComponentModel.ActivityCondition branchCondition);
member this.AddBranch : System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity> * System.Workflow.ComponentModel.ActivityCondition -> System.Workflow.Activities.IfElseBranchActivity
Public Function AddBranch (activities As ICollection(Of Activity), branchCondition As ActivityCondition) As IfElseBranchActivity
參數
- activities
- ICollection<Activity>
要加入至新分支的活動集合。
- branchCondition
- ActivityCondition
ActivityCondition,可判斷是否應執行分支。
傳回
具有新分支的已更新 IfElseBranchActivity。