PoolingAsyncValueTaskMethodBuilder.SetException(Exception) Method

Definition

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

C#
public void SetException(Exception exception);

Parameters

exception
Exception

The exception to bind to the task.

Applies to

Product Versions
.NET 6, 7, 8, 9