For Each <T> Activity
Description:
A looping activity that executes activities contained within it, once for each value provided in the Values collection.
Inheritance Hierarchy:
System.Object
System.Activities.Activity
System.Activities.NativeActivity
System.Activities.Statements.ForEach<T>
Function:
Runs one or more activities once for each value within a specified collection of Values. The Body of the ForEach activity may be designed to sequentially process each value in the collection in a similar way.
In a Workflow:
The ForEach<T> activity could be used with the Query Task and Get Geometries activities as follows:
- Use the Query Task activity to obtain a feature set.
- Use the Get Geometries activity to extract those geometries from the feature set.
- Use the ForEach<T> activity to process each geometry.
Properties:
Name |
Description |
---|---|
Display Name |
ForEach<T> |
TypeArgument |
The type T of the values provided in the Values collection. |
Values |
The activity’s collection of input values for the execution of the Body activities. |
Foreach |
Activity-scoped variable name that references a single instance from the Values collection during each iteration of the loop. |
Body |
A container for an activity that runs for each value in the Values collection. If you want more than one activity in the Body, use a composite activity such as a Sequence or Parallel activity. |
Version Information:
Supported from: Geocortex Essentials 3.0.
For more information: