DbCommand.ExecuteReader 메서드

정의

CommandText에 대해 Connection를 실행하고 DbDataReader를 반환합니다.Executes the CommandText against the Connection and returns a DbDataReader.

오버로드

ExecuteReader()

CommandText에 대해 Connection를 실행하고 DbDataReader를 반환합니다.Executes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior)

CommandText에 대해 Connection를 실행하고 DbDataReader 값 중 하나를 사용하여 CommandBehavior를 반환합니다.Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader()

CommandText에 대해 Connection를 실행하고 DbDataReader를 반환합니다.Executes the CommandText against the Connection, and returns an DbDataReader.

public:
 System::Data::Common::DbDataReader ^ ExecuteReader();
public System.Data.Common.DbDataReader ExecuteReader ();
member this.ExecuteReader : unit -> System.Data.Common.DbDataReader
Public Function ExecuteReader () As DbDataReader

반환

DbDataReader 개체입니다.A DbDataReader object.

추가 정보

ExecuteReader(CommandBehavior)

CommandText에 대해 Connection를 실행하고 DbDataReader 값 중 하나를 사용하여 CommandBehavior를 반환합니다.Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

public:
 System::Data::Common::DbDataReader ^ ExecuteReader(System::Data::CommandBehavior behavior);
public System.Data.Common.DbDataReader ExecuteReader (System.Data.CommandBehavior behavior);
member this.ExecuteReader : System.Data.CommandBehavior -> System.Data.Common.DbDataReader
Public Function ExecuteReader (behavior As CommandBehavior) As DbDataReader

매개 변수

behavior
CommandBehavior

명령 동작을 지정하는 열거형 값 중 하나입니다.One of the enumeration values that specifies the command behavior.

반환

추가 정보

적용 대상