Stream.Length 属性

定义

当在派生类中重写时,获取流长度(以字节为单位)。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.

适用于

另请参阅