AsyncDatabaseConnectionOpenBlobAsync Method (IAsyncDatabaseConnection, String, String, String, Int64, Boolean, CancellationToken) |
Opens the blob located by the a database, table, column, and rowid for incremental asynchronous I/O as a Stream.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static Task<Stream> OpenBlobAsync(
this IAsyncDatabaseConnection This,
string database,
string tableName,
string columnName,
long rowId,
bool canWrite,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member OpenBlobAsync :
This : IAsyncDatabaseConnection *
database : string *
tableName : string *
columnName : string *
rowId : int64 *
canWrite : bool *
cancellationToken : CancellationToken -> Task<Stream>
Parameters
- This
- Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection. - database
- Type: SystemString
The database containing the blob. - tableName
- Type: SystemString
The table containing the blob. - columnName
- Type: SystemString
The column containing the blob. - rowId
- Type: SystemInt64
The row containing the blob. - canWrite
- Type: SystemBoolean
if the Stream should be open for both read and write operations.
if the Stream should be open oly for read operations.
- cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token that can be used to cancel the task.
Return Value
Type:
TaskStreamA
Task that completes with a
Stream that can be used to asynchronously write and read to and from blob.
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