Pop3DeleteMessageAsync Method |
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> DeleteMessageAsync(
int index
)
Public Function DeleteMessageAsync (
index As Integer
) As Task(Of Boolean)
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:
TaskBooleanA task that represents the asynchronous operation.
The value of
TResult parameter is
true if the message has been flagged for deletion; otherwise,
false.
Exceptions See Also