Provides support for creating and scheduling
Tasks.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True, _ ExternalThreading := True)> _ Public Class TaskFactory |
C# |
---|
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, ExternalThreading = true)] public class TaskFactory |
Remarks
There are many common patterns for which tasks are relevant. The TaskFactory class encodes some of these patterns into methods that pick up default settings, which are configurable through its constructors.
A default instance of TaskFactory is available through the Task.Factory property.
Inheritance Hierarchy
System..::.Object
System.Threading.Tasks..::.TaskFactory
System.Threading.Tasks..::.TaskFactory