ControlExtensionsDoAsyncTControl Method |
Namespace: Qlik.Engine.Extensions.WinFormsAssembly: Qlik.Engine.Extensions.WinForms (in Qlik.Engine.Extensions.WinForms.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static Task DoAsync<TControl>(
this TControl control,
Func<TControl, Task> action
)
where TControl : Control
<ExtensionAttribute>
Public Shared Function DoAsync(Of TControl As Control) (
control As TControl,
action As Func(Of TControl, Task)
) As Task
Parameters
- control
- Type: TControl
- action
- Type: SystemFuncTControl, Task
Type Parameters
- TControl
Return Value
Type:
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also