Current Property

Task Parallel System.Threading

Gets the TaskScheduler associated with the currently executing task.

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

Syntax

Visual Basic (Declaration)
Public Shared ReadOnly Property Current As TaskScheduler
C#
public static TaskScheduler Current { get; }

Remarks

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

See Also