Task Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: