PoolingAsyncValueTaskMethodBuilder.SetException(Exception) メソッド

定義

タスクを失敗としてマークし、指定された例外をタスクにバインドします。

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

パラメーター

exception
Exception

タスクにバインドする例外。

適用対象