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:

Properties:

Name

Description

Display Name

ForEach<T>
You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

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:

https://msdn.microsoft.com/en-us/library/dd647676.aspx