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

WrapStreamSeek 方法

When overridden in a derived class, sets the position within the current stream.

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public override long Seek(
	long offset,
	SeekOrigin origin
)

参数

offset  Int64

[缺少 "M:TouchSocket.Core.WrapStream.Seek(System.Int64,System.IO.SeekOrigin)" 的 <param name="offset"/> 文档]

origin  SeekOrigin

[缺少 "M:TouchSocket.Core.WrapStream.Seek(System.Int64,System.IO.SeekOrigin)" 的 <param name="origin"/> 文档]

返回值

Int64

[缺少 "M:TouchSocket.Core.WrapStream.Seek(System.Int64,System.IO.SeekOrigin)" 的 <returns> 文档]

异常

IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support seeking, such as if the stream is constructed from a pipe or console output.
ObjectDisposedExceptionMethods were called after the stream was closed.

参见