共用方式為


IfElseActivity.AddBranch 方法

定義

將新分支加入至 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

另請參閱

適用於