Export (0) Print
Expand All

DbCommand.ExecuteReaderAsync Method

.NET Framework 4.5

An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.

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 ExecuteReaderAsync() An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync with CancellationToken.None.
Public method ExecuteReaderAsync(CancellationToken) An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader. This method propagates a notification that operations should be canceled.Invokes ExecuteDbDataReaderAsync.
Public method ExecuteReaderAsync(CommandBehavior) An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync.
Public method ExecuteReaderAsync(CommandBehavior, CancellationToken) Invokes ExecuteDbDataReaderAsync.
Top

Managed provider implementers must call ExecuteDbDataReaderAsync in ExecuteReaderAsync. For more information about asynchronous programming, see Asynchronous Programming.

Show:
© 2014 Microsoft