DbDataReader.Read DbDataReader.Read DbDataReader.Read DbDataReader.Read Method

定义

当在派生类中重写时,将读取器前移至结果集中的下一条记录。When overridden in a derived class, advances the reader to the next record in a result set.

public:
 abstract bool Read();
public abstract bool Read ();
abstract member Read : unit -> bool
Public MustOverride Function Read () As Boolean

返回

如果存在更多行,则为 true;否则为 falsetrue if there are more rows; otherwise, false.

实现

注解

数据读取器的默认位置处于第一条记录之前。The default position of a data reader is before the first record. 因此,您必须调用Read以开始访问数据。Therefore, you must call Read to begin accessing data.

适用于

另请参阅