MailBee.NET Objects 7.1

Pop3.GetMessageSize Method 

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

public int GetMessageSize(
   int index
);

Parameters

index
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

The length (in bytes) of the specified message in the inbox.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException The message index is not in the range from 1 to InboxMessageCount (by absolute value).
MailBeeException An error occurred and ThrowExceptions is true.

See Also

Pop3 Class | MailBee.Pop3Mail Namespace | GetMessageSizes | InboxPreloadOptions