MailKit Documentation
MailKit Documentation
API Reference
MimeKit.IO
MemoryBlockStream Class
MemoryBlockStream Methods
Dispose Method
Flush Method
FlushAsync Method
Read Method
ReadAsync Method
Seek Method
SetLength Method
ToArray Method
Write Method
WriteAsync Method
Memory
Block
Stream
Seek Method
Set the position within the current stream.
Namespace:
MimeKit.IO
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
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
Exception
Condition
ArgumentOutOfRangeException
origin
is not a valid
SeekOrigin
.
ObjectDisposedException
The stream has been disposed.
IOException
An I/O error occurred.
Remarks
Sets the position within the current stream.
See Also
Reference
MemoryBlockStream Class
MimeKit.IO Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast