System.Threading.Tasks.Task.Factory Property

Provides access to factory methods for creating System.Threading.Tasks.Task and System.Threading.Tasks.Task`1 instances.

Syntax

public static TaskFactory Factory { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The factory returned from Task.Factory is a default instance of System.Threading.Tasks.TaskFactory, as would result from using the default constructor on task factory. The most common use of this property is to create a new task and start it in one call to erload:System.Threading.Tasks.TaskFactory.StartNew. For an example, see How to: Return a Value from a Task.

Requirements

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