Pop3DownloadMessageHeaderAsync Method (Int32, Int32) |
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<MailMessage> DownloadMessageHeaderAsync(
int index,
int bodyLineCount
)
Public Function DownloadMessageHeaderAsync (
index As Integer,
bodyLineCount As Integer
) As Task(Of MailMessage)
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. - bodyLineCount
- Type: SystemInt32
Number of lines of the message source body to download
in addition to the message source header, or -1 to download the entire message.
Return Value
Type:
TaskMailMessageA task that represents the asynchronous operation.
On success, the value of
TResult parameter is a
MailMessage object containing the downloaded partial message;
otherwise, a null reference (
Nothing in Visual Basic).
Exceptions See Also