The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Task.Factory Property

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

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

public static TaskFactory Factory { get; }

Property Value

Type: System.Threading.Tasks.TaskFactory
The default TaskFactory for the current task.

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


Supported in: 5

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft