Интерфейс 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.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.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.