ImapDownloadEntireMessageAsync Method
async/await version of DownloadEntireMessage(Int64, Boolean).

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<MailMessage> DownloadEntireMessageAsync(
	long messageIndex,
	bool indexIsUid
)

Parameters

messageIndex
Type: SystemInt64
The ordinal position or UID of the message in the currently selected folder (for ordinal message numbers, can be negative, i.e. -1 denotes the last e-mail in the folder).
indexIsUid
Type: SystemBoolean
If true, messageIndex is treated as UID; otherwise, as ordinal message number.

Return Value

Type: TaskMailMessage
A task that represents the asynchronous operation. On success, the value of TResult parameter is a MailMessage object containing the entire message, including the message header, all the body parts and attachments; otherwise, a null reference (Nothing in Visual Basic).
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also