ConditionedActivityGroup 构造函数

定义

初始化 ConditionedActivityGroup 类的新实例。

重载

ConditionedActivityGroup()

初始化 ConditionedActivityGroup 类的新实例。

ConditionedActivityGroup(String)

使用活动名初始化 ConditionedActivityGroup 类的新实例。

ConditionedActivityGroup()

初始化 ConditionedActivityGroup 类的新实例。

public:
 ConditionedActivityGroup();
public ConditionedActivityGroup ();
Public Sub New ()

例外

未执行任何子级且 UntilCondition 计算结果为 false

示例

下面的代码示例演示如何使用此构造函数创建 ConditionedActivityGroup 的实例。 该代码还创建两个 CodeCondition 类实例和两个 CodeActivity 类实例。 此代码示例摘自 SimpleCAGWorkflow.Designer.cs 文件中的“ConditionedActivityGroup”SDK 示例。 有关详细信息,请参阅 Using ConditionedActivityGroup

this.CanModifyActivities = true;
System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
this.BookingCag = new System.Workflow.Activities.ConditionedActivityGroup();
this.Car = new System.Workflow.Activities.CodeActivity();
this.Airline = new System.Workflow.Activities.CodeActivity();
Me.CanModifyActivities = True
Dim codecondition1 As New System.Workflow.Activities.CodeCondition()
Dim codecondition2 As New System.Workflow.Activities.CodeCondition()
Me.BookingCag = New System.Workflow.Activities.ConditionedActivityGroup()
Me.Car = New System.Workflow.Activities.CodeActivity()
Me.Airline = New System.Workflow.Activities.CodeActivity()

另请参阅

适用于

ConditionedActivityGroup(String)

使用活动名初始化 ConditionedActivityGroup 类的新实例。

public:
 ConditionedActivityGroup(System::String ^ name);
public ConditionedActivityGroup (string name);
new System.Workflow.Activities.ConditionedActivityGroup : string -> System.Workflow.Activities.ConditionedActivityGroup
Public Sub New (name As String)

参数

name
String

活动的用户定义名称。

另请参阅

适用于