IDataReader.IsClosed IDataReader.IsClosed IDataReader.IsClosed IDataReader.IsClosed Property

定义

获取一个值,该值指示数据读取器是否已关闭。Gets a value indicating whether the data reader is closed.

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

属性值

如果数据读取器已关闭,则为 true;否则为 falsetrue if the data reader is closed; otherwise, false.

注解

IsClosedRecordsAffected是在关闭后可调用的IDataReader唯一属性。IsClosed and RecordsAffected are the only properties that you can call after the IDataReader is closed.

适用于