This documentation is archived and is not being maintained.
Task<TResult> Methods
Visual Studio 2010
The Task<TResult> type exposes the following members.
| Name | Description | |
|---|---|---|
|
ContinueWith(Action<Task>) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith(Action<Task<TResult>>) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith(Action<Task>, CancellationToken) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith(Action<Task>, TaskContinuationOptions) | Creates a continuation that executes according to the specified TaskContinuationOptions. (Inherited from Task.) |
|
ContinueWith(Action<Task>, TaskScheduler) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith(Action<Task<TResult>>, CancellationToken) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith(Action<Task<TResult>>, TaskContinuationOptions) | Creates a continuation that executes according the condition specified in continuationOptions. |
|
ContinueWith(Action<Task<TResult>>, TaskScheduler) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith(Action<Task>, CancellationToken, TaskContinuationOptions, TaskScheduler) | Creates a continuation that executes according to the specified TaskContinuationOptions. (Inherited from Task.) |
|
ContinueWith(Action<Task<TResult>>, CancellationToken, TaskContinuationOptions, TaskScheduler) | Creates a continuation that executes according the condition specified in continuationOptions. |
|
ContinueWith<TResult>(Func<Task, TResult>) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult>) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith<TResult>(Func<Task, TResult>, CancellationToken) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith<TResult>(Func<Task, TResult>, TaskContinuationOptions) | Creates a continuation that executes according to the condition specified in continuationOptions. (Inherited from Task.) |
|
ContinueWith<TResult>(Func<Task, TResult>, TaskScheduler) | Creates a continuation that executes asynchronously when the target Task completes. (Inherited from Task.) |
|
ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult>, CancellationToken) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult>, TaskContinuationOptions) | Creates a continuation that executes according the condition specified in continuationOptions. |
|
ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult>, TaskScheduler) | Creates a continuation that executes asynchronously when the target Task<TResult> completes. |
|
ContinueWith<TResult>(Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) | Creates a continuation that executes according to the condition specified in continuationOptions. (Inherited from Task.) |
|
ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) | Creates a continuation that executes according the condition specified in continuationOptions. |
|
Dispose() | Releases all resources used by the current instance of the Task class. (Inherited from Task.) |
|
Dispose(Boolean) | Disposes the Task, releasing all of its unmanaged resources. (Inherited from Task.) |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
RunSynchronously() | Runs the Task synchronously on the current TaskScheduler. (Inherited from Task.) |
|
RunSynchronously(TaskScheduler) | Runs the Task synchronously on the TaskScheduler provided. (Inherited from Task.) |
|
Start() | Starts the Task, scheduling it for execution to the current TaskScheduler. (Inherited from Task.) |
|
Start(TaskScheduler) | Starts the Task, scheduling it for execution to the specified TaskScheduler. (Inherited from Task.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
Wait() | Waits for the Task to complete execution. (Inherited from Task.) |
|
Wait(CancellationToken) | Waits for the Task to complete execution. (Inherited from Task.) |
|
Wait(Int32) | Waits for the Task to complete execution. (Inherited from Task.) |
|
Wait(TimeSpan) | Waits for the Task to complete execution. (Inherited from Task.) |
|
Wait(Int32, CancellationToken) | Waits for the Task to complete execution. (Inherited from Task.) |
Show: