Export (0) Print
Expand All

SqlDataReader.ReadAsync Method

.NET Framework 4.5

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ReadAsync() An asynchronous version of Read, which advances the reader to the next record in a result set. This method invokes ReadAsync with CancellationToken.None. (Inherited from DbDataReader.)
Public method ReadAsync(CancellationToken) An asynchronous version of Read, which advances the SqlDataReader to the next record.The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. (Overrides DbDataReader.ReadAsync(CancellationToken).)
Top
Show:
© 2014 Microsoft