ImapSetMessageFlagsAsync Method (String, Boolean, SystemMessageFlags, MessageFlagAction) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> SetMessageFlagsAsync(
string messageIndexSet,
bool indexIsUid,
SystemMessageFlags systemFlags,
MessageFlagAction action
)
Public Function SetMessageFlagsAsync (
messageIndexSet As String,
indexIsUid As Boolean,
systemFlags As SystemMessageFlags,
action As MessageFlagAction
) 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. - systemFlags
- Type: MailBee.ImapMailSystemMessageFlags
A set of flags to be set or reset. - action
- Type: MailBee.ImapMailMessageFlagAction
The action to perform with the specified flags (set, reset, etc).
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