TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Costruttore

Definizione

Inizializza una nuova istanza dell'elemento 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)

Parametri

task
Task

Attività.

captureContext
Boolean

se impostato su true [contesto di acquisizione].

Si applica a