Current Property
Collapse the table of content
Expand the table of content

TaskScheduler.Current Property

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

Gets the TaskScheduler associated with the currently executing task.

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

public static TaskScheduler Current { get; }

Property Value

Type: System.Threading.Tasks.TaskScheduler
Returns the TaskScheduler associated with the currently executing task.

When not called from within a task, Current will return the Default scheduler.

For more information, see [638f8ea5-21db-47a2-a934-86e1e961bf65].

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2018 Microsoft