Export (0) Print
Expand All

TaskScheduler.QueueTask Method

Queues a Task to the scheduler.

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

protected internal abstract void QueueTask(
	Task task


Type: System.Threading.Tasks.Task
The Task to be queued.


The task argument is null.

A class derived from TaskScheduler implements this method to accept tasks being scheduled on the scheduler.

A typical implementation would store the task in an internal data structure, which would be serviced by threads that would execute those tasks at some time in the future.

This method is only meant to be called by the .NET Framework and should not be called directly by the derived class. This is necessary for maintaining the consistency of the system.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2014 Microsoft