Sdílet prostřednictvím


TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Konstruktor

Definice

Inicializuje novou instanci TplExtensions.NoThrowTaskAwaiter struktury.

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)

Parametry

task
Task

Úloha

captureContext
Boolean

pokud je nastaveno na true [kontext zachycení].

Platí pro