IDataReader.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Advances the IDataReader to the next record.
public:
bool Read();
public bool Read ();
abstract member Read : unit -> bool
Public Function Read () As Boolean
Returns
A value of true
if the enumerator was successfully advanced to the next record, or a value of false
if the enumerator has passed the end of the result set.
Remarks
The default position of the IDataReader is prior to the first record. Therefore you must call Read to begin accessing any data.
While the data reader is in use, the associated connection is busy serving the IDataReader. This is the case until Close is called.