SeekableStreamSeek - метод

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

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public override long Seek(
	long offset,
	SeekOrigin origin
)

Параметры

offset  Int64
A byte offset relative to the origin parameter.
origin  SeekOrigin
A value of type SeekOrigin indicating the reference point used to obtain the new position.

Возвращаемое значение

Int64
The new position within the current stream.

Исключения

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.

См. также