Click or drag to resize
AsyncDatabaseConnectionExecuteAllAsync Method (IAsyncDatabaseConnection, String, CancellationToken)
Compiles and executes multiple SQL statements.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static Task ExecuteAllAsync(
	this IAsyncDatabaseConnection This,
	string sql,
	CancellationToken cancellationToken
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
An asynchronous database connection.
sql
Type: SystemString
One or more semicolon delimited SQL statements.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token that can be used to cancel the task.

Return Value

Type: Task
A task that completes when all statements have been executed.

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