BufferedStream.Length 屬性

定義

取得資料流的長度,以位元組為單位。

public:
 virtual property long Length { long get(); };
public override long Length { get; }
member this.Length : int64
Public Overrides ReadOnly Property Length As Long

屬性值

資料流的長度,以位元組為單位。

例外狀況

基礎資料流為 null 或關閉。

資料流不支援搜尋。

關閉資料流後呼叫了方法。

適用於

另請參閱