TplExtensions.NoThrowTaskAwaitable Constructor

Initializes a new instance of NoThrowTaskAwaitable.

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 NoThrowTaskAwaitable(
    Task task,
    bool captureContext
)
public:
NoThrowTaskAwaitable(
    Task^ task, 
    bool captureContext
)
new : 
        task:Task * 
        captureContext:bool -> NoThrowTaskAwaitable
public function TplExtensions.NoThrowTaskAwaitable(
    task : Task, 
    captureContext : boolean
)

Parameters

  • captureContext
    Type: System.Boolean

    true if the continuation should be scheduled on the current sync context, otherwise false.

.NET Framework Security

See Also

Reference

TplExtensions.NoThrowTaskAwaitable Structure

Microsoft.VisualStudio.Threading Namespace