SqlDataReader.HasRows 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示 SqlDataReader 是否包含一行还是多行。
public:
 virtual property bool HasRows { bool get(); };public:
 property bool HasRows { bool get(); };public override bool HasRows { get; }public bool HasRows { get; }member this.HasRows : boolPublic Overrides ReadOnly Property HasRows As BooleanPublic ReadOnly Property HasRows As Boolean属性值
如果 SqlDataReader 包含一行或多行,则为 true;否则为 false。