ImapClientDeleteMessageAsync Method (IConnection, String, Boolean, CancellationToken) |
Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this.
This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task DeleteMessageAsync(
IConnection connection,
string uniqueId,
bool commitNow,
CancellationToken token
)
Public Function DeleteMessageAsync (
connection As IConnection,
uniqueId As String,
commitNow As Boolean,
token As CancellationToken
) As Task
public:
Task^ DeleteMessageAsync(
IConnection^ connection,
String^ uniqueId,
bool commitNow,
CancellationToken token
)
member DeleteMessageAsync :
connection : IConnection *
uniqueId : string *
commitNow : bool *
token : CancellationToken -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - uniqueId
- Type: SystemString
The uid of the message - commitNow
- Type: SystemBoolean
Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also