ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.UnsafeOnCompleted 方法

定義

排程此 awaiter 相關工作的接續動作。

C#
[System.Security.SecurityCritical]
public void UnsafeOnCompleted (Action continuation);
C#
public void UnsafeOnCompleted (Action continuation);

參數

continuation
Action

等候作業完成時要叫用的動作。

實作

屬性

例外狀況

continuation 引數為 null

awaiter 未正確初始化。

備註

這個方法僅供編譯器使用。請勿直接在您的程式碼中使用。

適用於

產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0