AsyncValueTaskMethodBuilder<TResult>.SetException(Exception) Methode

Definitie

Markeert de taak als mislukt en koppelt de opgegeven uitzondering aan de taak.

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

Parameters

exception
Exception

De uitzondering om verbinding te maken met de taak.

Van toepassing op