Memory Block StreamWrite(Byte, Int 32, Int 32) Method
Write a sequence of bytes to the stream and advances the current
position within this stream by the number of bytes written.
Definition
Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override void Write(
byte[] buffer,
int offset,
int count
)Parameters
Remarks
Writes the entire buffer to the stream and advances the current position
within the stream by the number of bytes written, adding memory blocks as
needed in order to contain the newly written bytes.
Exceptions
| ArgumentNullException | buffer is . |
| ArgumentOutOfRangeException |
offset is less than zero or greater than the length of buffer. -or- The buffer is not large enough to contain count bytes starting at the specified offset. |
| ObjectDisposedException | The stream has been disposed. |
| NotSupportedException | The stream does not support writing. |
| IOException | An I/O error occurred. |