The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This documentation is archived and is not being maintained.
Task<TResult> Constructor
.NET Framework (current version)
Namespace:
System.Threading.Tasks Assembly:
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