DbCommand.IDbCommand.ExecuteReader Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the CommandText against the Connection and builds an IDataReader.
Overloads
| IDbCommand.ExecuteReader() | Executes the CommandText against the Connection and builds an IDataReader. | 
| IDbCommand.ExecuteReader(CommandBehavior) | Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values. | 
IDbCommand.ExecuteReader()
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
Executes the CommandText against the Connection and builds an IDataReader.
 virtual System::Data::IDataReader ^ System.Data.IDbCommand.ExecuteReader() = System::Data::IDbCommand::ExecuteReader;System.Data.IDataReader IDbCommand.ExecuteReader();abstract member System.Data.IDbCommand.ExecuteReader : unit -> System.Data.IDataReader
override this.System.Data.IDbCommand.ExecuteReader : unit -> System.Data.IDataReaderFunction ExecuteReader () As IDataReader Implements IDbCommand.ExecuteReaderReturns
An IDataReader object.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the DbCommand instance is cast to an IDbCommand interface.
For more information, see ExecuteReader.
See also
Applies to
IDbCommand.ExecuteReader(CommandBehavior)
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.
 virtual System::Data::IDataReader ^ System.Data.IDbCommand.ExecuteReader(System::Data::CommandBehavior behavior) = System::Data::IDbCommand::ExecuteReader;System.Data.IDataReader IDbCommand.ExecuteReader(System.Data.CommandBehavior behavior);abstract member System.Data.IDbCommand.ExecuteReader : System.Data.CommandBehavior -> System.Data.IDataReader
override this.System.Data.IDbCommand.ExecuteReader : System.Data.CommandBehavior -> System.Data.IDataReaderFunction ExecuteReader (behavior As CommandBehavior) As IDataReader Implements IDbCommand.ExecuteReaderParameters
- behavior
- CommandBehavior
One of the enumeration values that specifies the command behavior.
Returns
An IDataReader object.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the DbCommand instance is cast to an IDbCommand interface.
For more information, see ExecuteReader.