This documentation is archived and is not being maintained.

SqlDataReader.HasRows Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets a value indicating whether the SqlDataReader contains one or more rows.

[Visual Basic]
Public ReadOnly Property HasRows As Boolean
public bool HasRows {get;}
public: __property bool get_HasRows();
public function get HasRows() : Boolean;

Property Value

true if the SqlDataReader contains one or more rows; otherwise false.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace