Pop3GetMessageSize Method |
Gets the length (in bytes) of the specified message in the inbox.
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public int GetMessageSize(
int index
)
Public Function GetMessageSize (
index As Integer
) As Integer
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:
Int32The length (in bytes) of the specified message in the inbox.
Exceptions Remarks 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