Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TaskScheduler.Current Property

Definition

Namespace:
System.Threading.Tasks
Assemblies:
mscorlib.dll, System.Threading.Tasks.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Threading.Tasks.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
TaskScheduler.cs
Source:
TaskScheduler.cs
Source:
TaskScheduler.cs
Source:
TaskScheduler.cs
Source:
TaskScheduler.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the TaskScheduler associated with the currently executing task.

public:
 static property System::Threading::Tasks::TaskScheduler ^ Current { System::Threading::Tasks::TaskScheduler ^ get(); };
public static System.Threading.Tasks.TaskScheduler Current { get; }
static member Current : System.Threading.Tasks.TaskScheduler
Public Shared ReadOnly Property Current As TaskScheduler

Property Value

Returns the TaskScheduler associated with the currently executing task.

Remarks

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

For more information, see TaskScheduler.

Applies to

See also


Feedback

Was this page helpful?