| IMailSpoolDeleteMessageAsync Method |
Asynchronously mark the specified message for deletion.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task DeleteMessageAsync(
int index,
CancellationToken cancellationToken = default
)
Parameters
- index Int32
- The index of the message.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks See Also