Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Task.ContinueWith Method

Creates a continuation that executes asynchronously when the target Task completes.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Portable Class Library ContinueWith(Action<Task>) Creates a continuation that executes asynchronously when the target Task completes.
Public method Supported by Portable Class Library ContinueWith<TResult>(Func<Task, TResult>) Creates a continuation that executes asynchronously when the target Task<TResult> completes and returns a value.
Public method Supported by Portable Class Library ContinueWith(Action<Task>, CancellationToken) Creates a continuation that receives a cancellation token and executes asynchronously when the target Task completes.
Public method Supported by Portable Class Library ContinueWith(Action<Task>, TaskContinuationOptions) Creates a continuation that executes when the target task completes according to the specified TaskContinuationOptions.
Public method Supported by Portable Class Library ContinueWith(Action<Task>, TaskScheduler) Creates a continuation that executes asynchronously when the target Task completes. The continuation uses a specified scheduler.
Public method ContinueWith(Action<Task, Object>, Object) Creates a continuation that receives caller-supplied state information and executes when the target Task completes.
Public method Supported by Portable Class Library ContinueWith<TResult>(Func<Task, TResult>, CancellationToken) Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation receives a cancellation token.
Public method Supported by Portable Class Library ContinueWith<TResult>(Func<Task, TResult>, TaskContinuationOptions) Creates a continuation that executes according to the specified continuation options and returns a value.
Public method Supported by Portable Class Library ContinueWith<TResult>(Func<Task, TResult>, TaskScheduler) Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation uses a specified scheduler.
Public method ContinueWith<TResult>(Func<Task, Object, TResult>, Object) Creates a continuation that receives caller-supplied state information and executes asynchronously when the target Task completes and returns a value.
Public method ContinueWith(Action<Task, Object>, Object, CancellationToken) Creates a continuation that receives caller-supplied state information and a cancellation token and that executes asynchronously when the target Task completes.
Public method ContinueWith(Action<Task, Object>, Object, TaskContinuationOptions) Creates a continuation that receives caller-supplied state information and executes when the target Task completes. The continuation executes based on a set of specified conditions.
Public method ContinueWith(Action<Task, Object>, Object, TaskScheduler) Creates a continuation that receives caller-supplied state information and executes asynchronously when the target Task completes. The continuation uses a specified scheduler.
Public method ContinueWith<TResult>(Func<Task, Object, TResult>, Object, CancellationToken) Creates a continuation that executes asynchronously when the target Task completes and returns a value. The continuation receives caller-supplied state information and a cancellation token.
Public method ContinueWith<TResult>(Func<Task, Object, TResult>, Object, TaskContinuationOptions) Creates a continuation that executes based on the specified task continuation options when the target Task completes. The continuation receives caller-supplied state information.
Public method ContinueWith<TResult>(Func<Task, Object, TResult>, Object, TaskScheduler) Creates a continuation that executes asynchronously when the target Task completes. The continuation receives caller-supplied state information and uses a specified scheduler.
Public method Supported by Portable Class Library ContinueWith(Action<Task>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that executes when the target task competes according to the specified TaskContinuationOptions. The continuation receives a cancellation token and uses a specified scheduler.
Public method Supported by Portable Class Library ContinueWith<TResult>(Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that executes according to the specified continuation options and returns a value. The continuation is passed a cancellation token and uses a specified scheduler.
Public method ContinueWith(Action<Task, Object>, Object, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that receives caller-supplied state information and a cancellation token and that executes when the target Task completes. The continuation executes based on a set of specified conditions and uses a specified scheduler.
Public method ContinueWith<TResult>(Func<Task, Object, TResult>, Object, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that executes based on the specified task continuation options when the target Task completes and returns a value. The continuation receives caller-supplied state information and a cancellation token and uses the specified scheduler.
Top
Show:
© 2015 Microsoft