Click or drag to resize
MimeKit

IMailFolderCopyToAsync(IListInt32, IMailFolder, CancellationToken) Method

Asynchronously copy the specified messages to the destination folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
Task CopyToAsync(
	IList<int> indexes,
	IMailFolder destination,
	CancellationToken cancellationToken = default
)

Parameters

indexes  IListInt32
The indexes of the messages to copy.
destination  IMailFolder
The destination folder.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Task
An asynchronous task context.
Remarks
Asynchronously copies the specified messages to the destination folder.
See Also