Click or drag to resize

ImapClientMoveMessagesAsync Method (IConnection, IEnumerableImapMessageInfo, String, Boolean, CancellationToken)

Moves the message

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task MoveMessagesAsync(
	IConnection connection,
	IEnumerable<ImapMessageInfo> messageInfoSet,
	string folderName,
	bool commitDeletions,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
messageInfoSet
Type: System.Collections.GenericIEnumerableImapMessageInfo
The set of ImapMessageInfo
folderName
Type: SystemString
Folder name where a message is to be moved
commitDeletions
Type: SystemBoolean
Specifies whether deletions should be committed.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task
Task object, with delegate for this operation
See Also