次の方法で共有


AsyncExtensions.WrapMultipleExceptionsForAwait Method

Definition

Overloads

WrapMultipleExceptionsForAwait(Task)

Wraps the multiple exceptions as single aggregate exception for await operator.

WrapMultipleExceptionsForAwait<T>(Task<T>)

Wraps the multiple exceptions as single aggregate exception for await operator.

WrapMultipleExceptionsForAwait(Task)

Wraps the multiple exceptions as single aggregate exception for await operator.

public static System.Threading.Tasks.Task WrapMultipleExceptionsForAwait (this System.Threading.Tasks.Task task);
static member WrapMultipleExceptionsForAwait : System.Threading.Tasks.Task -> System.Threading.Tasks.Task
<Extension()>
Public Function WrapMultipleExceptionsForAwait (task As Task) As Task

Parameters

task
Task

The asynchronous task.

Returns

Applies to

WrapMultipleExceptionsForAwait<T>(Task<T>)

Wraps the multiple exceptions as single aggregate exception for await operator.

public static System.Threading.Tasks.Task<T> WrapMultipleExceptionsForAwait<T> (this System.Threading.Tasks.Task<T> task);
static member WrapMultipleExceptionsForAwait : System.Threading.Tasks.Task<'T> -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function WrapMultipleExceptionsForAwait(Of T) (task As Task(Of T)) As Task(Of T)

Type Parameters

T

The type of the result produced by task.

Parameters

task
Task<T>

The asynchronous task.

Returns

Task<T>

Applies to