MailMessageSaveMessageAsync Method (Stream)
async/await version of SaveMessage(Stream).

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> SaveMessageAsync(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The stream where the message should be saved.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the message was successfully saved; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionstream is a null reference (Nothing in Visual Basic).
MailBeeStreamExceptionThe given stream does not support writing or stream I/O error occurred, and ThrowExceptions is true.
See Also