Stream.Length Stream.Length Stream.Length Stream.Length Property

定義

在衍生類別中覆寫時,取得資料流的長度 (以位元組為單位)。When overridden in a derived class, gets the length in bytes of the stream.

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

屬性值

代表資料流長度的長數值 (以位元組為單位)。A long value representing the length of the stream in bytes.

例外狀況

衍生自 Stream 的類別不支援搜尋。A class derived from Stream does not support seeking.

關閉資料流後呼叫了方法。Methods were called after the stream was closed.

適用於

另請參閱