DbDataReader.HasRows DbDataReader.HasRows DbDataReader.HasRows DbDataReader.HasRows Property

定义

在派生类中重写时,获取一个值,该值指示此 DbDataReader 是包含一行还是多行。When overridden in a derived class, gets a value that indicates whether this DbDataReader contains one or more rows.

public:
 abstract property bool HasRows { bool get(); };
public abstract bool HasRows { get; }
member this.HasRows : bool
Public MustOverride ReadOnly Property HasRows As Boolean

属性值

如果 DbDataReader 包含一行或多行,则为 true;否则,为 falsetrue if the DbDataReader contains one or more rows; otherwise, false.

适用于

另请参阅