Task Constructor (Action)

Initializes a new Task with the specified action.

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

public Task(
	Action action
)

Parameters

action
Type: System.Action
The delegate that represents the code to execute in the Task.

ExceptionCondition
ArgumentNullException

The action argument is null.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: