Compartir a través de


TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Constructor

Definición

Inicializa una nueva instancia del 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

Tarea.

captureContext
Boolean

si se establece en true [contexto de captura].

Se aplica a