Uređivanje

Dijeli putem


PoolingAsyncValueTaskMethodBuilder<TResult>.SetException Method

Definition

Marks the value task as failed and binds the specified exception to the value task.

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

Parameters

exception
Exception

The exception to bind to the value task.

Applies to