Export (0) Print
Expand All

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
[C#]
public bool HasRows {get;}
[C++]
public: __property bool get_HasRows();
[JScript]
public function get HasRows() : Boolean;

Property Value

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

Requirements

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

Show:
© 2015 Microsoft