PoolingAsyncValueTaskMethodBuilder<TResult>.SetException Metod

Definition

Markerar värdeaktiviteten som misslyckad och binder det angivna undantaget till värdeaktiviteten.

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 värdeaktiviteten.

Gäller för