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

另请参阅

适用于