语言

ManualResetValueTaskSourceCore<TResult>.SetException(Exception) 方法

定义

完成并显示错误。

public:
 void SetException(Exception ^ error);
public void SetException(Exception error);
member this.SetException : Exception -> unit
Public Sub SetException (error As Exception)

参数

error
Exception

要定义的异常。

适用于