StreamReader.EndOfStream StreamReader.EndOfStream StreamReader.EndOfStream StreamReader.EndOfStream Property

定義

取得表示現行資料流位置是否在資料流結尾的值。Gets a value that indicates whether the current stream position is at the end of the stream.

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

屬性值

如果現行資料流位置在資料流的結尾,則為 true,否則為 falsetrue if the current stream position is at the end of the stream; otherwise false.

例外狀況

已處置基礎資料流。The underlying stream has been disposed.

適用於