Dispatcher Members

Provides services for managing the queue of work items for a thread.

The Dispatcher type exposes the following members.

  NameDescription
Public method BeginInvoke Overloaded. Executes a delegate asynchronously on the thread the Dispatcher is associated with.
Public method BeginInvokeShutdown Initiates shutdown of the Dispatcher asynchronously.
Public method CheckAccess Determines whether the calling thread is the thread associated with this Dispatcher.
Public method DisableProcessing Disables processing of the Dispatcher queue.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member ExitAllFrames Requests that all frames exit, including nested frames.
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.)
Public method Static member FromThread Gets the Dispatcher for the specified thread.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Invoke Overloaded. Executes the specified delegate synchronously on the thread the Dispatcher is associated with.
Public method InvokeShutdown Initiates the shutdown process of the Dispatcher synchronously.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member PushFrame Enters an execute loop.
Public method Static member Run Pushes the main execution frame on the event queue of the Dispatcher.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member ValidatePriority Determines whether the specified DispatcherPriority is a valid priority.
Public method VerifyAccess Determines whether the calling thread has access to this Dispatcher.
Top

  NameDescription
Public property Static member CurrentDispatcher Gets the Dispatcher for the thread currently executing and creates a new Dispatcher if one is not already associated with the thread.
Public property HasShutdownFinished Determines whether the Dispatcher has finished shutting down.
Public property HasShutdownStarted Determines whether the Dispatcher is shutting down.
Public property Hooks Gets the collection of hooks that provide additional event information about the Dispatcher.
Public property Thread Gets the thread this Dispatcher is associated with.
Top

  NameDescription
Public event ShutdownFinished Occurs when the Dispatcher finishes shutting down.
Public event ShutdownStarted Occurs when the Dispatcher begins to shut down.
Public event UnhandledException Occurs when a thread exception is thrown and uncaught during execution of a delegate by way of Invoke or BeginInvoke.
Public event UnhandledExceptionFilter Occurs when a thread exception is thrown and uncaught during execution of a delegate by way of Invoke or BeginInvoke when in the filter stage.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft