Click or drag to resize

ImapClientDeleteMessagesAsync Method (IConnection, Int32, Int32, CancellationToken)

Marks a message with the specified sequence number as deleted

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task DeleteMessagesAsync(
	IConnection connection,
	int startSequence,
	int endSequence,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
startSequence
Type: SystemInt32
The starting sequence number of a message list
endSequence
Type: SystemInt32
The ending sequence number of a message list
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task
Task object, with delegate for this operation
See Also