Parallel.For Method (Int32, Int32, Action<Int32>)
Executes a for (For in Visual Basic) loop in which iterations may run in parallel.
Assembly: mscorlib (in mscorlib.dll)
static member For : fromInclusive:int * toExclusive:int * body:Action<int> -> ParallelLoopResult
The start index, inclusive.
The end index, exclusive.
Return ValueType: System.Threading.Tasks.ParallelLoopResult
A structure that contains information about which portion of the loop completed.
The body delegate is invoked once for each value in the iteration range (fromInclusive, toExclusive). It is provided with the iteration count (Int32) as a parameter.
If fromInclusive is greater than or equal to toExclusive, the method returns immediately without performing any iterations.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1