語言

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

要設定的例外狀況。

適用於