DbDataReader.ReadAsync Method

.NET Framework 4.6 and 4.5

An asynchronous version of Read, which advances the reader to the next record in a result set. This method invokes ReadAsync with CancellationToken.None.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public Task<bool> ReadAsync()

Return Value

Type: System.Threading.Tasks.Task<Boolean>
A task representing the asynchronous operation.

ExceptionCondition
DbException

An error occurred while executing the command text.

For more information about asynchronous programming, see Asynchronous Programming.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft