Click or drag to resize
MimeKit

ChainedStreamSeek Method

Set the position within the current stream.

Namespace: MimeKit.IO
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override long Seek(
	long offset,
	SeekOrigin origin
)

Parameters

offset  Int64
The offset into the stream relative to the origin.
origin  SeekOrigin
The origin to seek from.

Return Value

Int64
The new position within the stream.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionorigin is not a valid SeekOrigin.
ObjectDisposedException The stream has been disposed.
NotSupportedException The stream does not support seeking.
IOException An I/O error occurred.
Remarks
Seeks to the specified position within the stream if all child streams support seeking.
See Also