SqlDataReader.IsClosed 屬性

定義

擷取布林值,指出指定的 SqlDataReader 執行個體是否已關閉。Retrieves a Boolean value that indicates whether the specified SqlDataReader instance has been closed.

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

屬性值

如果指定的 SqlDataReader 已關閉,則為 true,否則為 falsetrue if the specified SqlDataReader instance is closed; otherwise false.

實作

備註

無法從已關閉的 SqlDataReader 實例讀取。It is not possible to read from a SqlDataReader instance that is closed.

適用於

另請參閱