ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.UnsafeOnCompleted 方法

定义

为与此 awaiter 关联的任务计划延续操作。

public:
 virtual void UnsafeOnCompleted(Action ^ continuation);
[System.Security.SecurityCritical]
public void UnsafeOnCompleted (Action continuation);
public void UnsafeOnCompleted (Action continuation);
[<System.Security.SecurityCritical>]
abstract member UnsafeOnCompleted : Action -> unit
override this.UnsafeOnCompleted : Action -> unit
abstract member UnsafeOnCompleted : Action -> unit
override this.UnsafeOnCompleted : Action -> unit
Public Sub UnsafeOnCompleted (continuation As Action)

参数

continuation
Action

在等待操作完成时要调用的操作。

实现

属性

例外

continuation 参数为 null

awaiter 未正确地初始化。

注解

此方法适用于编译器;不要直接在代码中使用它。

适用于