Measuring StreamSeek Method
Set the position within the current stream.
Definition
Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The new position within the stream.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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
Int64The new position within the stream.
Remarks
Updates the Position within the stream.
Exceptions
| ArgumentOutOfRangeException | origin is not a valid SeekOrigin. |
| ObjectDisposedException | The stream has been disposed. |