TplExtensions.NoThrowTaskAwaiter Constructor
Initializes a new instance of NoThrowTaskAwaiter.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Sub New ( _
task As Task, _
captureContext As Boolean _
)
public NoThrowTaskAwaiter(
Task task,
bool captureContext
)
public:
NoThrowTaskAwaiter(
Task^ task,
bool captureContext
)
new :
task:Task *
captureContext:bool -> NoThrowTaskAwaiter
public function TplExtensions.NoThrowTaskAwaiter(
task : Task,
captureContext : boolean
)
Parameters
task
Type: System.Threading.Tasks.TaskThe task.
captureContext
Type: System.Booleantrue if the continuation should be scheduled on the current sync context, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.