Waits for all of the provided cancellable System.Threading.Tasks.Task objects to complete execution.
- tasks
- An array of System.Threading.Tasks.Task instances on which to wait.
- cancellationToken
- A TaskFactory.CancellationToken to observe while waiting for the tasks to complete.
The cancellationToken argument is used to cancel the wait operation. If it is canceled, the Wait returns false (False in Visual Basic). Cancellation of the tasks is a distinct operation, and is signaled by the AggregateException as noted above.