Pop3DeleteMessagesAsync Method (Int32, Int32)
async/await version of DeleteMessages(Int32, Int32).

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> DeleteMessagesAsync(
	int startIndex,
	int count
)

Parameters

startIndex
Type: SystemInt32
The ordinal position (in the inbox) of the first message in the range being deleted.
count
Type: SystemInt32
Number of messages to be flagged for deletion, or -1 to indicate that all messages in the range startIndex to InboxMessageCount must be flagged for deletion.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the messages have been flagged for deletion or count is 0; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also