This documentation is archived and is not being maintained.

Parallel.Invoke Method (Action[])

Executes each of the provided actions, possibly in parallel.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

static member Invoke : 
        actions:Action[] -> unit 


Type: System.Action[]
An array of Action to execute.


The actions argument is a null reference (Nothing in Visual Basic).


The exception that is thrown when any action in the actions array throws an exception.


The actions array contains a a null reference (Nothing in Visual Basic) element.

This method can be used to execute a set of operations, potentially in parallel.

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.

This example demonstrates how to use the Invokemethod with other methods, anonymous delegates, and lambda expressions.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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