MailMessageLoadMessageAsync Method (Stream)
async/await version of LoadMessage(Stream).

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<bool> LoadMessageAsync(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The stream containing the MIME source of the message.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the message was successfully loaded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionstream is a null reference (Nothing in Visual Basic).
MailBeeStreamExceptionA stream error occurred and ThrowExceptions is true.
MailBeeDataParsingExceptionOutlook .MSG file is being loaded instead of MIME (.EML) and ThrowExceptions is true.
See Also