ImapClientCopyMessagesAsync Method (IConnection, IEnumerableImapMessageInfo, String, CancellationToken) |
Copy messages
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task CopyMessagesAsync(
IConnection connection,
IEnumerable<ImapMessageInfo> messageInfoSet,
string folderName,
CancellationToken token
)
Public Function CopyMessagesAsync (
connection As IConnection,
messageInfoSet As IEnumerable(Of ImapMessageInfo),
folderName As String,
token As CancellationToken
) As Task
public:
Task^ CopyMessagesAsync(
IConnection^ connection,
IEnumerable<ImapMessageInfo^>^ messageInfoSet,
String^ folderName,
CancellationToken token
)
member CopyMessagesAsync :
connection : IConnection *
messageInfoSet : IEnumerable<ImapMessageInfo> *
folderName : string *
token : CancellationToken -> Task
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 - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskTask object, with delegate for this operation
See Also