共用方式為


RelationalDataReader.ReadAsync(CancellationToken) 方法

定義

在基礎 DbDataReader 上呼叫 ReadAsync(CancellationToken)

public virtual System.Threading.Tasks.Task<bool> ReadAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.ReadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function ReadAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

參數

cancellationToken
CancellationToken

傳回

如果有多個資料列則為 true;否則為 false

適用於