TaskCompletionSource.SetException Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| SetException(IEnumerable<Exception>) | |
| SetException(Exception) |
SetException(IEnumerable<Exception>)
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- 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))
Parametrar
- exceptions
- IEnumerable<Exception>
Samlingen med undantag som ska bindas till den här Task.
Undantag
exceptions är null.
Det finns ett eller flera null element i exceptions.
Den underliggande Task är redan i något av de tre sista tillstånden: RanToCompletion, Faultedeller Canceled.
Gäller för
SetException(Exception)
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
- Källa:
- TaskCompletionSource.cs
public:
void SetException(Exception ^ exception);
public void SetException(Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
Parametrar
Undantag
exception är null.
Den underliggande Task är redan i något av de tre sista tillstånden: RanToCompletion, Faultedeller Canceled.