你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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