AsyncValueTaskMethodBuilder<TResult>.SetException(Exception) Methode

Definition

Markiert die Aufgabe als fehlgeschlagen und verknüpft die angegebene Ausnahme mit der Aufgabe.

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, die an die Aufgabe gebunden werden soll.

Gilt für: