Imap.SetMessageFlagsAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9448)
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.