AsyncStatementUseT Method (IAsyncStatement, FuncIStatement, T) |
Schedules the FuncT, TResultf on the statement's operations queue.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static Task<T> Use<T>(
this IAsyncStatement This,
Func<IStatement, T> f
)
[<ExtensionAttribute>]
static member Use :
This : IAsyncStatement *
f : Func<IStatement, 'T> -> Task<'T>
Parameters
- This
- Type: SQLitePCL.prettyIAsyncStatement
The async statement. - f
- Type: SystemFuncIStatement, T
A function from IAsyncStatement to T.
Type Parameters
- T
- The result type.
Return Value
Type:
TaskTA task that completes with the result of
f.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncStatement. 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