This documentation is archived and is not being maintained.
Task<'TResult> Constructor
.NET Framework (current version)
Namespace:
System.Threading.TasksAssembly:
mscorlib (in mscorlib.dll)
| Name | Description |
|---|
 | Task<'TResult>(Func<'TResult>) | |
 | Task<'TResult>(Func<'TResult>, CancellationToken) | |
 | Task<'TResult>(Func<'TResult>, CancellationToken, TaskCreationOptions) | Initializes a new Task<'TResult> with the specified function and creation options. |
 | Task<'TResult>(Func<'TResult>, TaskCreationOptions) | Initializes a new Task<'TResult> with the specified function and creation options. |
 | Task<'TResult>(Func<Object, 'TResult>, Object) | Initializes a new Task<'TResult> with the specified function and state. |
 | Task<'TResult>(Func<Object, 'TResult>, Object, CancellationToken) | Initializes a new Task<'TResult> with the specified action, state, and options. |
 | Task<'TResult>(Func<Object, 'TResult>, Object, CancellationToken, TaskCreationOptions) | Initializes a new Task<'TResult> with the specified action, state, and options. |
 | Task<'TResult>(Func<Object, 'TResult>, Object, TaskCreationOptions) | Initializes a new Task<'TResult> with the specified action, state, and options. |
Return to top