ImapClientDeleteMessageAsync Method (IConnection, String, Int64, CancellationToken) |
Marks a message with the specified unique identifier as deleted
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task DeleteMessageAsync(
IConnection connection,
string uniqueId,
long modificationSequence,
CancellationToken token
)
Public Function DeleteMessageAsync (
connection As IConnection,
uniqueId As String,
modificationSequence As Long,
token As CancellationToken
) As Task
public:
Task^ DeleteMessageAsync(
IConnection^ connection,
String^ uniqueId,
long long modificationSequence,
CancellationToken token
)
member DeleteMessageAsync :
connection : IConnection *
uniqueId : string *
modificationSequence : int64 *
token : CancellationToken -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - uniqueId
- Type: SystemString
The uid of the message - modificationSequence
- Type: SystemInt64
Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also