一款简单易用的基础网络通讯组件库。

FileStorageStreamLength 属性

When overridden in a derived class, gets the length in bytes of the stream.

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public override long Length { get; }

返回值

Int64
A long value representing the length of the stream in bytes.

异常

NotSupportedExceptionA class derived from Stream does not support seeking.
ObjectDisposedExceptionMethods were called after the stream was closed.

参见