Memory Block StreamTo Array Method
Copy the memory stream into a byte array.
Definition
Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The array.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public byte[] ToArray()Return Value
ByteThe array.
Remarks
Copies all of the stream data into a newly allocated byte array.
Exceptions
| ObjectDisposedException | The stream has been disposed. |