SqliteCommand.ExecuteReaderAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ExecuteReaderAsync() |
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。 |
| ExecuteReaderAsync(CommandBehavior) |
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。 |
| ExecuteReaderAsync(CancellationToken) |
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。 |
| ExecuteReaderAsync(CommandBehavior, CancellationToken) |
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。 |
ExecuteReaderAsync()
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。
public virtual System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader> ExecuteReaderAsync();
override this.ExecuteReaderAsync : unit -> System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader>
Public Overridable Function ExecuteReaderAsync () As Task(Of SqliteDataReader)
傳回
表示非同步作業的工作。
備註
SQLite 不支援非同步執行。 請改用預先寫入記錄。
適用於
ExecuteReaderAsync(CommandBehavior)
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。
public virtual System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader> ExecuteReaderAsync(System.Data.CommandBehavior behavior);
override this.ExecuteReaderAsync : System.Data.CommandBehavior -> System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader>
Public Overridable Function ExecuteReaderAsync (behavior As CommandBehavior) As Task(Of SqliteDataReader)
參數
- behavior
- CommandBehavior
查詢結果的描述及其對資料庫的影響。
傳回
表示非同步作業的工作。
備註
SQLite 不支援非同步執行。 請改用預先寫入記錄。
適用於
ExecuteReaderAsync(CancellationToken)
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。
public virtual System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader> ExecuteReaderAsync(System.Threading.CancellationToken cancellationToken);
override this.ExecuteReaderAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader>
Public Overridable Function ExecuteReaderAsync (cancellationToken As CancellationToken) As Task(Of SqliteDataReader)
參數
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。
傳回
表示非同步作業的工作。
例外狀況
備註
SQLite 不支援非同步執行。 請改用預先寫入記錄。
適用於
ExecuteReaderAsync(CommandBehavior, CancellationToken)
CommandText以非同步方式對資料庫執行 ,並傳回資料讀取器。
public virtual System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader> ExecuteReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken);
override this.ExecuteReaderAsync : System.Data.CommandBehavior * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Data.Sqlite.SqliteDataReader>
Public Overridable Function ExecuteReaderAsync (behavior As CommandBehavior, cancellationToken As CancellationToken) As Task(Of SqliteDataReader)
參數
- behavior
- CommandBehavior
查詢結果的描述及其對資料庫的影響。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。
傳回
表示非同步作業的工作。
例外狀況
備註
SQLite 不支援非同步執行。 請改用預先寫入記錄。