英語で読む

次の方法で共有


DispatcherPriorityAwaiter 構造体

定義

非同期タスクの完了待ちのオブジェクトを表します。

C#
public struct DispatcherPriorityAwaiter : System.Runtime.CompilerServices.INotifyCompletion
継承
DispatcherPriorityAwaiter
実装

プロパティ

IsCompleted

非同期タスクが完了したかどうかを示す値を取得します。

メソッド

GetResult()

非同期タスクの完了の待機を終了します。

OnCompleted(Action)

DispatcherPriorityAwaiter オブジェクトが、非同期タスクの完了を待機するのをやめたときに実行するアクションを設定します。

適用対象

製品 バージョン
.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
Windows Desktop 3.0, 3.1, 5, 6, 7