TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TplExtensions.NoThrowTaskAwaiter struct.
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)
Parameters
- task
- Task
The task.
- captureContext
- Boolean
if set to true
[capture context].