TaskScheduler::QueueTask Method
Queues a Task to the scheduler.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | 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.
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.