Прочетете на английски Редактиране

Споделяне чрез


DispatcherPriorityAwaitable Struct

Definition

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

C#
public struct DispatcherPriorityAwaitable
Inheritance
DispatcherPriorityAwaitable

Remarks

The Dispatcher.Yield method returns a DispatcherPriorityAwaitable.

Methods

GetAwaiter()

Returns an object that waits for the completion of an asynchronous task.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10