Factory Property
Collapse the table of content
Expand the table of content

Task<TResult>.Factory Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Show:
© 2017 Microsoft