Export (0) Print
Expand All

OdbcCommand.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. (Inherited from DbCommand.)
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. (Inherited from DbCommand.)
Public method ExecuteReaderAsync(CommandBehavior) An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync. (Inherited from DbCommand.)
Public method ExecuteReaderAsync(CommandBehavior, CancellationToken) Invokes ExecuteDbDataReaderAsync. (Inherited from DbCommand.)
Top

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

Show:
© 2014 Microsoft