Windows apps
Collapse the table of content
Expand the table of content
Information
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.

Task<TResult> Constructor

 

Initializes a new Task<TResult> object.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodTask<TResult>(Func<TResult>^)

Initializes a new Task<TResult> with the specified function.

System_CAPS_pubmethodTask<TResult>(Func<TResult>^, CancellationToken)

Initializes a new Task<TResult> with the specified function.

System_CAPS_pubmethodTask<TResult>(Func<TResult>^, CancellationToken, TaskCreationOptions)

Initializes a new Task<TResult> with the specified function and creation options.

System_CAPS_pubmethodTask<TResult>(Func<TResult>^, TaskCreationOptions)

Initializes a new Task<TResult> with the specified function and creation options.

System_CAPS_pubmethodTask<TResult>(Func<Object^, TResult>^, Object^)

Initializes a new Task<TResult> with the specified function and state.

System_CAPS_pubmethodTask<TResult>(Func<Object^, TResult>^, Object^, CancellationToken)

Initializes a new Task<TResult> with the specified action, state, and options.

System_CAPS_pubmethodTask<TResult>(Func<Object^, TResult>^, Object^, CancellationToken, TaskCreationOptions)

Initializes a new Task<TResult> with the specified action, state, and options.

System_CAPS_pubmethodTask<TResult>(Func<Object^, TResult>^, Object^, TaskCreationOptions)

Initializes a new Task<TResult> with the specified action, state, and options.

Return to top
Show:
© 2017 Microsoft