AsyncDatabaseConnectionPrepareStatementAsync Method (IAsyncDatabaseConnection, String, CancellationToken) |
Compiles a SQL statement.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static Task<IAsyncStatement> PrepareStatementAsync(
this IAsyncDatabaseConnection This,
string sql,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member PrepareStatementAsync :
This : IAsyncDatabaseConnection *
sql : string *
cancellationToken : CancellationToken -> Task<IAsyncStatement>
Parameters
- This
- Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection. - sql
- Type: SystemString
The SQL statement to compile. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token that can be used to cancel the task.
Return Value
Type:
TaskIAsyncStatementTask that completes with a
IAsyncStatement that
can be used to query the result set asynchronously.
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