Click or drag to resize
MimeKit

IMailFolderCopyTo Method (IListUniqueId, IMailFolder, CancellationToken)

Copy the specified messages to the destination folder.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 3.0.0
Syntax
C#
UniqueIdMap CopyTo(
	IList<UniqueId> uids,
	IMailFolder destination,
	CancellationToken cancellationToken = default
)

Parameters

uids
Type: System.Collections.GenericIListUniqueId
The UIDs of the messages to copy.
destination
Type: MailKitIMailFolder
The destination folder.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: UniqueIdMap
The UID mapping of the messages in the destination folder, if available; otherwise an empty mapping.
Remarks
Copies the specified messages to the destination folder.
See Also