MemoryBlockStreamToArray Method

Copy the memory stream into a byte array.

Definition

Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public byte[] ToArray()

Return Value

Byte
The array.

Remarks

Copies all of the stream data into a newly allocated byte array.

Exceptions

ObjectDisposedException The stream has been disposed.

See Also