다음을 통해 공유


IDataReader 인터페이스

Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by Reporting Services Data Processing Extensions that access relational databases.

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

구문

‘선언
Public Interface IDataReader _
    Inherits IDisposable
‘사용 방법
Dim instance As IDataReader
public interface IDataReader : IDisposable
public interface class IDataReader : IDisposable
type IDataReader =  
    interface 
        interface IDisposable 
    end
public interface IDataReader extends IDisposable

IDataReader 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 FieldCount Gets the number of fields in the data reader.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Dispose (IDisposable에서 상속됨)
공용 메서드 GetFieldType Gets the Type information corresponding to the type of object that is returned from GetValue.
공용 메서드 GetName Gets the name of the field to find.
공용 메서드 GetOrdinal Return the index of the named field.
공용 메서드 GetValue Return the value of the specified field.
공용 메서드 Read Advances the IDataReader to the next record.

맨 위로 이동

주의

The IDataReader interface enables you to implement a DataReader class, which provides a means of reading one or more forward-only streams of result sets. For more information about DataReader classes, see 데이터 처리 확장 프로그램에 대한 DataReader 클래스 구현.

An application does not create an instance of the IDataReader interface directly, but creates an instance of a class that implements IDataReader.

Classes that implement IDataReader must also implement the required members, and typically define additional members to add provider-specific functionality.

Changes made to a result set by another process or thread while data is being read may be visible to the user of a class that implements an IDataReader. However, the precise behavior is both provider and timing dependent.

Users do not create an instance of a DataReader class directly. Instead, they obtain the DataReader through the ExecuteReader method of the Command object. Therefore, you should mark DataReader constructors as internal.

참고 항목

참조

Microsoft.ReportingServices.DataProcessing 네임스페이스