Export (0) Print
Expand All

Dispatcher Methods

The Dispatcher type exposes the following members.

  Name Description
Public method BeginInvoke(Delegate, Object[]) Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on.
Public method BeginInvoke(DispatcherPriority, Delegate) Executes the specified delegate asynchronously at the specified priority on the thread the Dispatcher is associated with.
Public method BeginInvoke(Delegate, DispatcherPriority, Object[]) Executes the specified delegate asynchronously with the specified arguments, at the specified priority, on the thread that the Dispatcher was created on.
Public method BeginInvoke(DispatcherPriority, Delegate, Object) Executes the specified delegate asynchronously at the specified priority and with the specified argument on the thread the Dispatcher is associated with.
Public method BeginInvoke(DispatcherPriority, Delegate, Object, Object[]) Executes the specified delegate asynchronously at the specified priority and with the specified array of arguments 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(Object) 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.
Public method Static member FromThread Gets the Dispatcher for the specified thread.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invoke(Action) Executes the specified Action synchronously on the thread the Dispatcher is associated with.
Public method Invoke(Action, DispatcherPriority) Executes the specified Action synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method Invoke(Delegate, Object[]) Executes the specified delegate with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, Delegate) Executes the specified delegate synchronously at the specified priority on the thread on which the Dispatcher is associated with.
Public method Invoke(Action, DispatcherPriority, CancellationToken) Executes the specified Action synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method Invoke(Delegate, TimeSpan, Object[]) Executes the specified delegate within the designated time span at the specified priority with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke(Delegate, DispatcherPriority, Object[]) Executes the specified delegate at the specified priority with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, Delegate, Object) Executes the specified delegate at the specified priority with the specified argument synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, TimeSpan, Delegate) Executes the specified delegate synchronously at the specified priority and with the specified time-out value on the thread the Dispatcher was created.
Public method Invoke(Action, DispatcherPriority, CancellationToken, TimeSpan) Executes the specified Action synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method Invoke(Delegate, TimeSpan, DispatcherPriority, Object[]) Executes the specified delegate within the designated time span at the specified priority with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, Delegate, Object, Object[]) Executes the specified delegate at the specified priority with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, TimeSpan, Delegate, Object) Executes the specified delegate at the specified priority with the specified argument synchronously on the thread the Dispatcher is associated with.
Public method Invoke(DispatcherPriority, TimeSpan, Delegate, Object, Object[]) Executes the specified delegate at the specified priority with the specified arguments synchronously on the thread the Dispatcher is associated with.
Public method Invoke<TResult>(Func<TResult>) Executes the specified Func<TResult> synchronously on the thread the Dispatcher is associated with.
Public method Invoke<TResult>(Func<TResult>, DispatcherPriority) Executes the specified Func<TResult> synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) Executes the specified Func<TResult> synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method Invoke<TResult>(Func<TResult>, DispatcherPriority, CancellationToken, TimeSpan) Executes the specified Func<TResult> synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method InvokeAsync(Action) Executes the specified Action asynchronously on the thread the Dispatcher is associated with.
Public method InvokeAsync(Action, DispatcherPriority) Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.
Public method InvokeAsync(Action, DispatcherPriority, CancellationToken) Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.
Public method InvokeAsync<TResult>(Func<TResult>) Executes the specified Func<TResult> asynchronously on the thread the Dispatcher is associated with.
Public method InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) Executes the specified Func<TResult> asynchronously at the specified priority on the thread the Dispatcher is associated with.
Public method InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) Executes the specified Func<TResult> synchronously at the specified priority on the thread the Dispatcher is associated with.
Public method InvokeShutdown Initiates the shutdown process of the Dispatcher synchronously.
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.
Public method Static member Yield() Creates an awaitable object that asynchronously yields control back to the current dispatcher and provides an opportunity for the dispatcher to process other events.
Public method Static member Yield(DispatcherPriority) Creates an awaitable object that asynchronously yields control back to the current dispatcher and provides an opportunity for the dispatcher to process other events. The work that occurs when control returns to the code awaiting the result of this method is scheduled with the specified priority.
Top

  Name Description
Public Extension Method BeginInvoke(Action) Overloaded. Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on. (Defined by DispatcherExtensions.)
Public Extension Method BeginInvoke(Action, DispatcherPriority) Overloaded. Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on. (Defined by DispatcherExtensions.)
Public Extension Method Invoke(Action) Overloaded. Executes the specified delegate synchronously with normal priority on the thread that the specified Dispatcher was created on. (Defined by DispatcherExtensions.)
Public Extension Method Invoke(Action, TimeSpan) Overloaded. Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period. (Defined by DispatcherExtensions.)
Public Extension Method Invoke(Action, DispatcherPriority) Overloaded. Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on. (Defined by DispatcherExtensions.)
Public Extension Method Invoke(Action, TimeSpan, DispatcherPriority) Overloaded. Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period. (Defined by DispatcherExtensions.)
Top
Show:
© 2014 Microsoft