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 Constructor

 

Initializes a new Task.

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

NameDescription
System_CAPS_pubmethodTask(Action^)

Initializes a new Task with the specified action.

System_CAPS_pubmethodTask(Action^, CancellationToken)

Initializes a new Task with the specified action and CancellationToken.

System_CAPS_pubmethodTask(Action^, CancellationToken, TaskCreationOptions)

Initializes a new Task with the specified action and creation options.

System_CAPS_pubmethodTask(Action^, TaskCreationOptions)

Initializes a new Task with the specified action and creation options.

System_CAPS_pubmethodTask(Action<Object^>^, Object^)

Initializes a new Task with the specified action and state.

System_CAPS_pubmethodTask(Action<Object^>^, Object^, CancellationToken)

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

System_CAPS_pubmethodTask(Action<Object^>^, Object^, CancellationToken, TaskCreationOptions)

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

System_CAPS_pubmethodTask(Action<Object^>^, Object^, TaskCreationOptions)

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

Return to top
Show:
© 2017 Microsoft