TaskCompletionSource.SetException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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))
Parameters
- exceptions
- IEnumerable<Exception>
The collection of exceptions to bind to this Task.
Exceptions
exceptions
is null
.
There are one or more null
elements in exceptions
.
The underlying Task is already in one of the three final states: RanToCompletion, Faulted, or Canceled.
Applies to
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)
Parameters
Exceptions
exception
is null
.
The underlying Task is already in one of the three final states: RanToCompletion, Faulted, or Canceled.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET