Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1022 Bytes

coredispatcher_tryrunasync_1355560768.md

File metadata and controls

32 lines (22 loc) · 1022 Bytes
-api-id -api-type
M:Windows.UI.Core.CoreDispatcher.TryRunAsync(Windows.UI.Core.CoreDispatcherPriority,Windows.UI.Core.DispatchedHandler)
winrt method

Windows.UI.Core.CoreDispatcher.TryRunAsync

-description

Attempts to schedule the specified callback on the UI thread from a worker thread, and returns the results asynchronously.

-parameters

-param priority

Specifies the priority for event dispatch. Set this to CoreDispatcherPriority.Normal.

-param agileCallback

The callback on which the dispatcher returns when the event is dispatched.

-returns

The asynchronous operation.

-remarks

If called while the CoreDispatcher is shutting down, this method will complete successfully and return false.

-examples

-see-also

RunAsync