Synopsis
bool isClosed = DataReader.IsClosed;
Returns true
if the DataReader
has been closed, either by calling the DataReader.Close( )
method or calling Close( )
on the
underlying connection.
Note
RecordsAffected
and IsClosed
are the only two properties that can safely be called if the
DataReader
is closed.