Parallel.Invoke Method (ParallelOptions, Action)
Executes each of the provided actions, possibly in parallel, unless the operation is cancelled by the user.
Assembly: mscorlib (in mscorlib.dll)
The CancellationToken in the parallelOptions is set.
The actions argument is null.
The parallelOptions argument is null.
The exception that is thrown when any action in the actions array throws an exception.
The actions array contains a null element.
This method can be used to execute a set of operations, potentially in parallel. The cancellation token passed in with the ParallelOptions structure enables the caller to cancel the entire operation. For more information, see Cancellation in Managed Threads.
No guarantees are made about the order in which the operations execute or whether they execute in parallel. This method does not return until each of the provided operations has completed, regardless of whether completion occurs due to normal or exceptional termination.
For more information, see How to: Use Parallel.Invoke to Execute Parallel Operations.
Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.