Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.SetMessageFlagsAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

SetMessageFlagsAsync(ImapMessageSet, ImapFlagAction, ImapMessageFlags, String[], Object)

Begins asynchronous SetMessageFlags operation. Modifies the flags of messages in the current folder that belong to a specified message set.

Declaration
public Task SetMessageFlagsAsync(ImapMessageSet messageSet, ImapFlagAction action, ImapMessageFlags flags, string[] keywords, object state = null)
Parameters
Type Name Description
ImapMessageSet messageSet

A set of messages.

ImapFlagAction action

The action to take.

ImapMessageFlags flags

Flags to add, remove or set.

String[] keywords

Keywords to add, remove or set.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Remarks

This method represents IMAP STORE command.

SetMessageFlagsAsync(Int32, ImapFlagAction, ImapMessageFlags, String[], Object)

Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified sequence number.

Declaration
public Task SetMessageFlagsAsync(int sequenceNumber, ImapFlagAction action, ImapMessageFlags flags, string[] keywords, object state = null)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

ImapFlagAction action

The action to take.

ImapMessageFlags flags

Flags to add, remove or set.

String[] keywords

Keywords to add, remove or set.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Remarks

This method represents IMAP STORE command.

SetMessageFlagsAsync(String, ImapFlagAction, ImapMessageFlags, String[], Object)

Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified unique ID.

Declaration
public Task SetMessageFlagsAsync(string uniqueId, ImapFlagAction action, ImapMessageFlags flags, string[] keywords, object state = null)
Parameters
Type Name Description
String uniqueId

Message unique ID.

ImapFlagAction action

The action to take.

ImapMessageFlags flags

Flags to add, remove or set.

String[] keywords

Keywords to add, remove or set.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Remarks

This method represents IMAP STORE command.

In This Article
  • SetMessageFlagsAsync(ImapMessageSet, ImapFlagAction, ImapMessageFlags, String[], Object)
  • SetMessageFlagsAsync(Int32, ImapFlagAction, ImapMessageFlags, String[], Object)
  • SetMessageFlagsAsync(String, ImapFlagAction, ImapMessageFlags, String[], Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies