ImapCopyMessagesAsync Method (String, Boolean, String, UidPlusResult) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> CopyMessagesAsync(
string messageIndexSet,
bool indexIsUid,
string targetFolderName,
UidPlusResult result
)
Public Function CopyMessagesAsync (
messageIndexSet As String,
indexIsUid As Boolean,
targetFolderName As String,
result As UidPlusResult
) As Task(Of Boolean)
Parameters
- messageIndexSet
- Type: SystemString
A message sequence string containing ordinal message numbers or UIDs. Can be composed manually or using ToString. - indexIsUid
- Type: SystemBoolean
If true, messageIndexSet is treated as a sequence of UIDs; otherwise, as a sequence of ordinal message numbers. - targetFolderName
- Type: SystemString
The full name of the destination folder. - result
- Type: MailBee.ImapMailUidPlusResult
A reference to the UidPlusResult object to be filled with the outcome
of the copy operation reported by UIDPLUS enabled server (the outcome includes the UIDs
of the source messages being copied, the UIDs assigned to the copied messages in
the destination folder, and the UIDVALIDITY of the destination folder),
or a null reference (Nothing in Visual Basic) if the application does not need this information.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation. The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions See Also