Sdílet prostřednictvím


SqlCommand.IDbCommand.ExecuteReader Metoda

Definice

Přetížení

IDbCommand.ExecuteReader()

Odešle do CommandTextConnectiona vytvoří SqlDataReader.

IDbCommand.ExecuteReader(CommandBehavior)

Odešle hodnotu CommandText do a vytvoří SqlDataReader pomocí jedné z CommandBehaviorConnectionhodnot.

IDbCommand.ExecuteReader()

Odešle do CommandTextConnectiona vytvoří SqlDataReader.

 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.IDataReader
Function ExecuteReader () As IDataReader Implements IDbCommand.ExecuteReader

Návraty

Objekt SqlDataReader .

Implementuje

Platí pro

IDbCommand.ExecuteReader(CommandBehavior)

Odešle hodnotu CommandText do a vytvoří SqlDataReader pomocí jedné z CommandBehaviorConnectionhodnot.

 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.IDataReader
Function ExecuteReader (behavior As CommandBehavior) As IDataReader Implements IDbCommand.ExecuteReader

Parametry

behavior
CommandBehavior

Jedna z CommandBehavior hodnot.

Návraty

Objekt SqlDataReader .

Implementuje

Platí pro