다음을 통해 공유


IDbCommand.ExecuteReader 메서드

Executes the CommandText against the Connection and builds an IDataReader.

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

구문

‘선언
Function ExecuteReader ( _
    behavior As CommandBehavior _
) As IDataReader
‘사용 방법
Dim instance As IDbCommand 
Dim behavior As CommandBehavior 
Dim returnValue As IDataReader 

returnValue = instance.ExecuteReader(behavior)
IDataReader ExecuteReader(
    CommandBehavior behavior
)
IDataReader^ ExecuteReader(
    CommandBehavior behavior
)
abstract ExecuteReader : 
        behavior:CommandBehavior -> IDataReader
function ExecuteReader(
    behavior : CommandBehavior
) : IDataReader

매개 변수

반환 값

유형: Microsoft.ReportingServices.DataProcessing.IDataReader
An IDataReader object.

주의

The caller must call the Open method of the Connection property.

When the CommandType property is set to StoredProcedure, the CommandText property should be set to the name of the stored procedure. The command executes this stored procedure when you call ExecuteReader.

The IDataReader supports a special mode that enables large binary values to be read efficiently. For more information, see the "SequentialAccess Setting for CommandBehavior" in your .NET Framework documentation.

While the IDataReader is in use, the associated IDbConnection is busy serving the IDataReader. While in this state, no other operations can be performed on the IDbConnection other than closing it.

참고 항목

참조

IDbCommand 인터페이스

Microsoft.ReportingServices.DataProcessing 네임스페이스