AsyncValueTaskMethodBuilder.SetException(Exception) Metod

Definition

Markerar aktiviteten som misslyckad och binder det angivna undantaget till aktiviteten.

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

Parametrar

exception
Exception

Undantaget för att binda till aktiviteten.

Gäller för