TaskFactory<TResult>.ContinueWhenAll Method (Task, Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler)
Creates a continuation task that will be started upon the completion of a set of provided Tasks.
Assembly: mscorlib (in mscorlib.dll)
public Task<TResult> ContinueWhenAll( Task tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler )
The array of tasks from which to continue.
The function delegate to execute asynchronously when all tasks in the tasks array have completed.
The cancellation token that will be assigned to the new continuation task.
One of the enumeration values that controls the behavior of the created continuation task. The NotOn* or OnlyOn* values are not valid.
The scheduler that is used to schedule the created continuation task.
The tasks array is null.
The continuationFunction argument is null.
The scheduler argument is null.
The tasks array contains a null value or is empty.
continuationOptions specifies an invalid value.
One of the elements in the tasks array has been disposed.
The CancellationTokenSource that created cancellationToken has already been disposed.
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