Click or drag to resize

ImapFlagMessageByNumberAsync(Int64, Flag, CancellationToken) Method

Flags the message with specified flag.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<List<Flag>> FlagMessageByNumberAsync(
	long messageNumber,
	Flag flag,
	CancellationToken cancel = default
)

Parameters

messageNumber  Int64
1 based message number.
flag  Flag
Flag to be added. For specifying system flags you can use static fields e.g. Seen.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskListFlag
List containing flags of the specified message after the change or null when messageNumber is incorrect.
Remarks
You can use SupportsCustomFlags to check, if selected folder supports custom flags. Exchange 2007 and 2010 do not support custom flags (keywords).
See Also