Click or drag to resize

ImapClientChangeMessageFlagsAsync Method (IConnection, IEnumerableInt32, ImapMessageFlags, CancellationToken)

Changes the flags of the message

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task ChangeMessageFlagsAsync(
	IConnection connection,
	IEnumerable<int> sequenceSet,
	ImapMessageFlags flags,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
sequenceSet
Type: System.Collections.GenericIEnumerableInt32
The set of sequence numbers for messages
flags
Type: Aspose.Email.Clients.ImapImapMessageFlags
The flags to be removed
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task
Task object, with delegate for this operation
See Also