Rediger

Del via


ConditionedActivityGroup Constructors

Definition

Initializes a new instance of the ConditionedActivityGroup class.

Overloads

ConditionedActivityGroup()

Initializes a new instance of the ConditionedActivityGroup class.

ConditionedActivityGroup(String)

Initializes a new instance of the ConditionedActivityGroup class using the name of the activity.

ConditionedActivityGroup()

Initializes a new instance of the ConditionedActivityGroup class.

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

Exceptions

No children are executing and the UntilCondition evaluates to false.

Examples

The following code example shows how to use the constructor to create an instance of ConditionedActivityGroup. The code also creates two CodeCondition class instances and two CodeActivity class instances. This code example is part of the ConditionedActivityGroup SDK Sample from the SimpleCAGWorkflow.Designer.cs file. For more information, see 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()

See also

Applies to

ConditionedActivityGroup(String)

Initializes a new instance of the ConditionedActivityGroup class using the name of the activity.

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)

Parameters

name
String

The user-defined name of the activity.

See also

Applies to