TaskCompletionSource.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.
Surcharges
SetException(IEnumerable<Exception>) | |
SetException(Exception) |
SetException(IEnumerable<Exception>)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
public:
void SetException(System::Collections::Generic::IEnumerable<Exception ^> ^ exceptions);
public void SetException (System.Collections.Generic.IEnumerable<Exception> exceptions);
member this.SetException : seq<Exception> -> unit
Public Sub SetException (exceptions As IEnumerable(Of Exception))
Paramètres
- exceptions
- IEnumerable<Exception>
Collection d'exceptions à lier à ce Task.
Exceptions
exceptions
a la valeur null
.
Il y a un ou plusieurs éléments null
dans exceptions
.
Task sous-jacent est déjà dans l’un des trois états finaux : RanToCompletion, Faulted ou Canceled.
S’applique à
SetException(Exception)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
public:
void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
Paramètres
Exceptions
exception
a la valeur null
.
Task sous-jacent est déjà dans l’un des trois états finaux : RanToCompletion, Faulted ou Canceled.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour