Windows Dev Center

Task<TResult>.Factory Property

Provides access to factory methods for creating Task<TResult> instances.

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

public static TaskFactory<TResult> Factory { get; }

Property Value

Type: System.Threading.Tasks.TaskFactory<TResult>
A default instance of TaskFactory<TResult>.

The factory returned from Factory is a default instance of TaskFactory<TResult>, as would result from using the default constructor on the factory type.

Windows Phone OS

Supported in: 8.1, 8.0

© 2015 Microsoft