Pop3GetMessageSize Method
Gets the length (in bytes) of the specified message in the inbox.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public int GetMessageSize(
	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: Int32
The length (in bytes) of the specified message in the inbox.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionThe message index is not in the range from 1 to InboxMessageCount (by absolute value).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
Note Note
This method may issue a network operation if the message list has not yet been downloaded from the POP3 server during login (see InboxPreloadOptions). To make sure you have the local copy of the list, call GetMessageSizes first (or its async version).
See Also