Click or drag to resize

ImapClientDeleteMessageRange Method

Deletes the specified messages.

Namespace:  GemBox.Email.Imap
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1012
Syntax
public void DeleteMessageRange(
	int startingNumber,
	int endingNumber,
	bool expunge
)

Parameters

startingNumber
Type: SystemInt32
First message number.
endingNumber
Type: SystemInt32
Last message number.
expunge
Type: SystemBoolean
True to delete message immediately from the server; otherwise, false.
Exceptions
ExceptionCondition
InvalidOperationException No folder is selected or Client is not connected or Server error.
ArgumentOutOfRangeException Starting number is out of range or Ending number is out of range.
Remarks
Setting expunge to true will delete specified messages from the server and those messages cannot be undeleted. By setting expunge to false, specified messages will just be marked for deletion, but they won't be removed from the server until Expunge is called.
See Also