OleDbDataReader.IsClosed 属性

定义

指示是否可关闭数据读取器。Indicates 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 已关闭,则为 OleDbDataReader;否则为 falsetrue if the OleDbDataReader is closed; otherwise, false.

注解

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

适用于

另请参阅