PoolingAsyncValueTaskMethodBuilder.SetException(Exception) Método

Definição

Marca a tarefa como com falha e associa a exceção especificada à tarefa.

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

Parâmetros

exception
Exception

A exceção para associar à tarefa.

Aplica-se a