Task.WaitAll Method (Task)
Waits for all of the provided Task objects to complete execution.
Assembly: mscorlib (in mscorlib.dll)
One or more of the Task objects in tasks has been disposed.
The tasks argument is null.
The tasks argument contains a null element.
The tasks argument is an empty array.
The following example starts 10 tasks, each of which is passed an index as a state object. Tasks with an index from two to five throw exceptions. The call to the AggregateException object and propagates it to the calling thread.method wraps all exceptions in an
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Available since 8.1