PoolingAsyncValueTaskMethodBuilder<TResult>.SetException Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Marque la tâche de valeur comme ayant échoué et lie l’exception spécifiée à la tâche value.
public:
void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
Paramètres
- exception
- Exception
Exception à lier à la tâche de valeur.