[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Invokes in parallel the specified action for each element in the source.
<ExtensionAttribute> _ Public Shared Sub ForAll(Of TSource) ( _ source As ParallelQuery(Of TSource), _ action As Action(Of TSource) _ )
Dim source As ParallelQuery(Of TSource) Dim action As Action(Of TSource) source.ForAll(action)
public static void ForAll<TSource>( this ParallelQuery<TSource> source, Action<TSource> action )
[ExtensionAttribute] public: generic<typename TSource> static void ForAll( ParallelQuery<TSource>^ source, Action<TSource>^ action )
static member ForAll : source:ParallelQuery<'TSource> * action:Action<'TSource> -> unit
The type of elements of source.
The query was canceled.
source or action is a null reference (Nothing in Visual Basic).
One or more exceptions occurred during the evaluation of the query.
This is an efficient way to process the output from a parallelized query because it does not require a merge step at the end. However, order of execution is non-deterministic.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003