Compartilhar via


TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Construtor

Definição

Inicializa uma nova instância do struct TplExtensions.NoThrowTaskAwaiter.

public:
 NoThrowTaskAwaiter(System::Threading::Tasks::Task ^ task, bool captureContext);
public NoThrowTaskAwaiter (System.Threading.Tasks.Task task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaiter : System.Threading.Tasks.Task * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaiter
Public Sub New (task As Task, captureContext As Boolean)

Parâmetros

task
Task

A tarefa.

captureContext
Boolean

se definido como true [contexto de captura].

Aplica-se a