Share via


Task.ContinueWith Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public method ContinueWith(Action<Task>) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith<TResult>(Func<Task, TResult>) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith(Action<Task>, CancellationToken) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith(Action<Task>, TaskContinuationOptions) Creates a continuation that executes according to the specified TaskContinuationOptions.
Public method ContinueWith(Action<Task>, TaskScheduler) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith<TResult>(Func<Task, TResult>, CancellationToken) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith<TResult>(Func<Task, TResult>, TaskContinuationOptions) Creates a continuation that executes according to the condition specified in continuationOptions.
Public method ContinueWith<TResult>(Func<Task, TResult>, TaskScheduler) Creates a continuation that executes asynchronously when the target Task completes.
Public method ContinueWith(Action<Task>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that executes according to the specified TaskContinuationOptions.
Public method ContinueWith<TResult>(Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation that executes according to the condition specified in continuationOptions.

Top

Change History

Date

History

Reason

Added text to clarify asynchronous execution of continuations.

Customer feedback.