UnsetMessageFlags Method
Removes the flags specified by MessageFlags from the messages specified by MessageSet .
Syntax
public void UnsetMessageFlags();
Public Sub UnsetMessageFlags()
Remarks
This method removes the flags specified by the MessageFlags property from the messages specified by the MessageSet property. The format of the flags is specified by the IMAP RFCs.
Examples of possible flag values are server dependent, but can include:
\Deleted | Mark a message as deleted (for removal by later ExpungeMailbox). |
\Seen | Mark a message as read. |
\Answered | Mark a message as answered. |
\Flagged | Mark a message as flagged. |
\Draft | Mark a message as being incomplete (under composition). |
.NET Standard Notes
To call this method in an asynchronous manner call UnsetMessageFlagsAsync instead. When the method completes (or an error is encountered) the UnsetMessageFlagsCompleted event will fire.