This documentation is archived and is not being maintained.

IDataReader.IsClosed Property

Gets a value indicating whether the data reader is closed.

[Visual Basic]
ReadOnly Property IsClosed As Boolean
bool IsClosed {get;}
__property bool get_IsClosed();
function get IsClosed() : Boolean;

Property Value

true if the data reader is closed; otherwise, false.


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


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

IDataReader Interface | IDataReader Members | System.Data Namespace