TaskCompletionSource.SetException Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| SetException(IEnumerable<Exception>) | |
| SetException(Exception) |
SetException(IEnumerable<Exception>)
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))
Parametreler
- exceptions
- IEnumerable<Exception>
Bu Tasköğesine bağlanacak özel durumların koleksiyonu.
Özel durumlar
exceptions, null değeridir.
içinde exceptionsbir veya daha fazla null öğe vardır.
Temel alınan Task zaten üç son durumdan birindedir: RanToCompletion, Faultedveya Canceled.
Şunlara uygulanır
SetException(Exception)
public:
void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
Parametreler
Özel durumlar
exception, null değeridir.
Temel alınan Task zaten üç son durumdan birindedir: RanToCompletion, Faultedveya Canceled.