| IMailFolderExtensionsRemoveFlags(IMailFolder, IListInt32, UInt64, MessageFlags, HashSetString, Boolean, CancellationToken) Method |
Remove a set of flags from the specified messages only if their mod-sequence value is less than the specified value.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax public static IList<int> RemoveFlags(
this IMailFolder folder,
IList<int> indexes,
ulong modseq,
MessageFlags flags,
HashSet<string> keywords,
bool silent,
CancellationToken cancellationToken = default
)
Parameters
- folder IMailFolder
- The folder.
- indexes IListInt32
- The indexes of the messages.
- modseq UInt64
- The mod-sequence value.
- flags MessageFlags
- The message flags to remove.
- keywords HashSetString
- A set of user-defined flags to remove.
- silent Boolean
- If set to true, no MessageFlagsChanged events will be emitted.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
IListInt32The indexes of the messages that were not updated.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IMailFolder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
Removes a set of flags from the specified messages only if their mod-sequence value is less than the specified value.
See Also