ICopyRequestOnStarted(IMailFolder, IListUniqueId) Method

Called when a subset of the messages is about to be sent to the server.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
void OnStarted(
	IMailFolder folder,
	IList<UniqueId> uids
)

Parameters

folder  IMailFolder
The source folder.
uids  IListUniqueId
The UIDs of the messages that are about to be copied.

Remarks

Called immediately before a command that will copy the specified subset of messages is sent to the server. A single CopyTo operation may be split into multiple commands, in which case this method will be called once for each subset of the messages.

If this method is called but OnCompleted(IMailFolder, UniqueIdMap) is not called for the same subset of messages and the operation fails with an exception other than a CommandException, then it is unknown whether or not the server copied the messages.

See Also