ImapClientDeleteMessagesAsync Method (IConnection, IEnumerableString, Int64, 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 DeleteMessagesAsync(
IConnection connection,
IEnumerable<string> uidSet,
long modificationSequence,
bool commitNow,
CancellationToken token
)
Public Function DeleteMessagesAsync (
connection As IConnection,
uidSet As IEnumerable(Of String),
modificationSequence As Long,
commitNow As Boolean,
token As CancellationToken
) As Task
public:
Task^ DeleteMessagesAsync(
IConnection^ connection,
IEnumerable<String^>^ uidSet,
long long modificationSequence,
bool commitNow,
CancellationToken token
)
member DeleteMessagesAsync :
connection : IConnection *
uidSet : IEnumerable<string> *
modificationSequence : int64 *
commitNow : bool *
token : CancellationToken -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - uidSet
- Type: System.Collections.GenericIEnumerableString
The set of UID for messages - modificationSequence
- Type: SystemInt64
Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 - 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