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 .NET Framework data providers that access relational databases.

See Also: IDataReader Members


public interface IDataReader : IDataRecord, IDisposable


The System.Data.IDataReader and System.Data.IDataRecord interfaces allow an inheriting class 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 [<topic://cpcontheadonetdatareader>].

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

Classes that inherit System.Data.IDataReader must implement the inherited 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.


Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,