Dispatcher.Yield Method

.NET Framework (current version)
 

Creates an awaitable object that asynchronously yields control back to the current dispatcher and provides an opportunity for the dispatcher to process other events.

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticYield()

Creates an awaitable object that asynchronously yields control back to the current dispatcher and provides an opportunity for the dispatcher to process other events.

System_CAPS_pubmethodSystem_CAPS_staticYield(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.

Return to top
Show: