BufferedStream.Length 属性

定义

获取流长度,长度以字节为单位。Gets the stream length in bytes.

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

属性值

Int64

流长度,以字节为单位。The stream length in bytes.

例外

基础流为 null 或已关闭。The underlying stream is null or closed.

流不支持查找。The stream does not support seeking.

在流关闭后调用方法。Methods were called after the stream was closed.

适用于