ForEach Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Executes an activity action once for each value provided in the Values collection.

Namespace:  System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

[ContentPropertyAttribute("Body")]
public sealed class ForEach : NativeActivity

ForEach is similar to the keyword foreach, but is implemented as an activity rather than a language statement.

Note that unlike foreach in C#, the ForEach activity uses GetEnumerator(), rather than IEnumerator#System#Collections#IEnumerable#GetEnumerator().

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft