.NET Framework Class Library |
TaskScheduler..::.Current Property |
TaskScheduler Class See Also Send Feedback |
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.