Dispatcher.InvokeAsync Method (Action, DispatcherPriority, CancellationToken)
Assembly: WindowsBase (in WindowsBase.dll)
Public Function InvokeAsync ( callback As Action, priority As DispatcherPriority, cancellationToken As CancellationToken ) As DispatcherOperation
A delegate to invoke through the dispatcher.
The priority that determines in what order the specified callback is invoked relative to the other pending operations in the Dispatcher.
An object that indicates whether to cancel the action.
Return ValueType: System.Windows.Threading.DispatcherOperation
An object, which is returned immediately afteris called, that can be used to interact with the delegate as it is pending execution in the event queue.
Available since 4.5