AsyncValueTaskMethodBuilder<TResult>.SetException(Exception) Yöntem

Tanım

Görevi başarısız olarak işaretler ve belirtilen özel durumu göreve bağlar.

public:
 void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)

Parametreler

exception
Exception

Göreve bağlanmak için özel durum.

Şunlara uygulanır