System.Data.IDataReader.Read Method

Advances the System.Data.IDataReader to the next record.

Syntax

public bool Read ()

Returns

true if there are more rows; otherwise, false.

Remarks

The default position of the System.Data.IDataReader is prior to the first record. Therefore you must call IDataReader.Read to begin accessing any data.

While the data reader is in use, the associated connection is busy serving the System.Data.IDataReader. This is the case until IDataReader.Close is called.

Requirements

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