Condividi tramite


Interfaccia IDataReaderExtension

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 used by SQL Server Reporting Services to retrieve aggregation-specific information about a result set.

Spazio dei nomi  Microsoft.ReportingServices.DataProcessing
Assembly:   Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Sintassi

'Dichiarazione
Public Interface IDataReaderExtension _
    Inherits IDataReader, IDisposable
'Utilizzo
Dim instance As IDataReaderExtension
public interface IDataReaderExtension : IDataReader, 
    IDisposable
public interface class IDataReaderExtension : IDataReader, 
    IDisposable
type IDataReaderExtension =  
    interface
        interface IDataReader
        interface IDisposable
    end
public interface IDataReaderExtension extends IDataReader, IDisposable

Nel tipo IDataReaderExtension sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica AggregationFieldCount Gets the number of fields by which the data is aggregated.
Proprietà pubblica FieldCount Gets the number of fields in the data reader. Ereditato da IDataReader.
Proprietà pubblica IsAggregateRow Indicates whether the current row contains aggregate data.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Dispose Ereditato da IDisposable.
Metodo pubblico GetFieldType Gets the Type information corresponding to the type of object that is returned from GetValue. Ereditato da IDataReader.
Metodo pubblico GetName Gets the name of the field to find. Ereditato da IDataReader.
Metodo pubblico GetOrdinal Return the index of the named field. Ereditato da IDataReader.
Metodo pubblico GetValue Return the value of the specified field. Ereditato da IDataReader.
Metodo pubblico IsAggregationField Indicates whether the data is aggregated by the field with the given index.
Metodo pubblico Read Advances the IDataReader to the next record. Ereditato da IDataReader.

In alto

Osservazioni

The IDataReaderExtension interface enables you to implement an extension of the IDataReader interface, which you can use to provide a report server with aggregation information about your result set. For more information about DataReader classes, see Implementazione di una classe DataReader per un'estensione per l'elaborazione dati.

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

Classes that implement IDataReaderExtension must also implement the required members, and typically define additional members to add provider-specific functionality. Because IDataReaderExtension inherits from IDataReaderExtension, you must also implement all of the IDataReaderExtension members as part of your DataReader class.

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 IDataReaderExtension. 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.