SqlDataReader.IsClosed 屬性

定義

擷取布林值,指出指定的 SqlDataReader 執行個體是否已關閉。

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

屬性值

如果指定的 SqlDataReader 已關閉,則為 true,否則為 false

實作

備註

無法從已關閉的 SqlDataReader 實例讀取。

適用於

另請參閱