Dispatcher.InvokeAsync Method

.NET Framework 4.6 and 4.5

Executes the specified delegate asynchronously on the thread the Dispatcher is associated with.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method InvokeAsync(Action) Executes the specified Action asynchronously 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(Action, DispatcherPriority) Executes the specified Action asynchronously at the specified priority 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(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>, DispatcherPriority, CancellationToken) Executes the specified Func<TResult> synchronously at the specified priority on the thread the Dispatcher is associated with.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft