Export (0) Print
Expand All

SqlDataReader.IsClosed Property

Gets a value indicating whether the data reader is closed.

[Visual Basic]
Public Overridable ReadOnly Property IsClosed As Boolean  _
   Implements IDataReader.IsClosed
[C#]
public virtual bool IsClosed {get;}
[C++]
public: __property virtual bool get_IsClosed();
[JScript]
public function get IsClosed() : Boolean;

Property Value

true if the SqlDataReader is closed; otherwise, false.

Implements

IDataReader.IsClosed

Remarks

IsClosed and RecordsAffected are the only properties that you can call after the SqlDataReader is closed.

Requirements

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

See Also

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

Show:
© 2014 Microsoft