System.Threading.Tasks.Task.Factory Property

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


public static TaskFactory Factory { get; }


Documentation for this section has not yet been entered.


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.


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