Export (0) Print
Expand All

TaskScheduler Methods

The TaskScheduler type exposes the following members.

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

In .NET Framework Client Profile, this member is overridden by Finalize().

In Portable Class Library, this member is overridden by Finalize().
Public method Static member FromCurrentSynchronizationContext Creates a TaskScheduler associated with the current System.Threading.SynchronizationContext.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetScheduledTasks For debugger support only, generates an enumerable of Task instances currently queued to the scheduler waiting to be executed.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method QueueTask Queues a Task to the scheduler.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryDequeue Attempts to dequeue a Task that was previously queued to this scheduler.
Protected method TryExecuteTask Attempts to execute the provided Task on this scheduler.
Protected method TryExecuteTaskInline Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.
© 2014 Microsoft