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
| Nom | Description |
|---|---|
| SetException(IEnumerable<Exception>) | |
| SetException(Exception) |
SetException(IEnumerable<Exception>)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- 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 existe un ou plusieurs null éléments dans exceptions.
Le sous-jacent Task se trouve déjà dans l’un des trois états finaux : RanToCompletion, Faultedou Canceled.
S’applique à
SetException(Exception)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- 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.
Le sous-jacent Task se trouve déjà dans l’un des trois états finaux : RanToCompletion, Faultedou Canceled.