Pop3DownloadMessageHeaderAsync Method (Int32)
async/await version of DownloadMessageHeader(Int32).

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<MailMessage> DownloadMessageHeaderAsync(
	int index
)

Parameters

index
Type: SystemInt32
The ordinal position of the message in the inbox. It must be in the range from 1 to InboxMessageCount. Can be negative in the range from -1 to -InboxMessageCount, i.e. -1 denotes the last e-mail in the inbox.

Return Value

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