 | IMailFolderCopyToAsync(Int32, IMailFolder, CancellationToken) Method |
Asynchronously copy the specified message to the destination folder.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.10.0
SyntaxTask CopyToAsync(
int index,
IMailFolder destination,
CancellationToken cancellationToken = default
)
Parameters
- index Int32
- The indexes of the message to copy.
- destination IMailFolder
- The destination folder.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions
Remarks
Asynchronously copies the specified message to the destination folder.
See Also