PoolingAsyncValueTaskMethodBuilder<TResult>.SetException Methode

Definition

Markiert den Werttask als fehlgeschlagen und bindet die angegebene Ausnahme an den Werttask.

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

Parameter

exception
Exception

Die Ausnahme für die Bindung an den Werttask.

Gilt für: