Click or drag to resize
MimeKit

IMailFolderCopyTo(UniqueId, IMailFolder, CancellationToken) Method

Copy the specified message to the destination folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
UniqueId? CopyTo(
	UniqueId uid,
	IMailFolder destination,
	CancellationToken cancellationToken = default
)

Parameters

uid  UniqueId
The UID of the message to copy.
destination  IMailFolder
The destination folder.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

NullableUniqueId
The UID of the message in the destination folder, if available; otherwise, null.
Remarks
Copies the specified message to the destination folder.
See Also