DbDataReader.IsClosed 属性

定义

在派生类中重写时,获取一个值,该值指示 DbDataReader 是否关闭。When overridden in a derived class, gets a value indicating whether the DbDataReader is closed.

public:
 abstract property bool IsClosed { bool get(); };
public abstract bool IsClosed { get; }
member this.IsClosed : bool
Public MustOverride ReadOnly Property IsClosed As Boolean

属性值

Boolean

如果 DbDataReader 已关闭,则为 true;否则为 falsetrue if the DbDataReader is closed; otherwise, false.

实现

例外

DbDataReader 是关闭的。The DbDataReader is closed.

实施者说明

应实现此属性, RecordsAffected 以便在读取器关闭时返回值。This property and RecordsAffected should be implemented to return a value when the reader is closed.

适用于

另请参阅