Click or drag to resize
AsyncDatabaseConnectionUseT Method (IAsyncDatabaseConnection, FuncIDatabaseConnection, T)
Schedules the FuncT, TResultf on the database operations queue.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static Task<T> Use<T>(
	this IAsyncDatabaseConnection This,
	Func<IDatabaseConnection, T> f
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection.
f
Type: SystemFuncIDatabaseConnection, T
A function from IDatabaseConnection to T.

Type Parameters

T
The result type.

Return Value

Type: TaskT
A 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 IAsyncDatabaseConnection. 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