ProgressWithCompletion<T> Constructor (Func<T, Task>)
Initializes a new instance of ProgressWithCompletion.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Sub New ( _
handler As Func(Of T, Task) _
)
public ProgressWithCompletion(
Func<T, Task> handler
)
public:
ProgressWithCompletion(
Func<T, Task^>^ handler
)
new :
handler:Func<'T, Task> -> ProgressWithCompletion
public function ProgressWithCompletion(
handler : Func<T, Task>
)
Parameters
handler
Type: System.Func<T, Task>The async handler.
.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.
See Also
Reference
ProgressWithCompletion<T> Class