Imap.DeleteMessageAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
DeleteMessageAsync(ImapMessageSet, Object)
Begins asynchronous DeleteMessage operation. Marks messages that belong to a specified message set as deleted.
Declaration
public Task DeleteMessageAsync(ImapMessageSet messageSet, object state = null)
Parameters
Type | Name | Description |
---|---|---|
ImapMessageSet | messageSet | A set of messages. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
To actually remove messages marked as deleted, use the Purge() method.
This method represents IMAP STORE command.
DeleteMessageAsync(Int32, Object)
Begins asynchronous DeleteMessage operation. Marks a message with the specified sequence number as deleted.
Declaration
public Task DeleteMessageAsync(int sequenceNumber, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sequenceNumber | Message sequence number. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
To actually remove messages marked as deleted, use the Purge() method.
This method represents IMAP STORE command.
DeleteMessageAsync(String, Object)
Begins asynchronous DeleteMessage operation. Marks a message with the specified unique ID as deleted.
Declaration
public Task DeleteMessageAsync(string uniqueId, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uniqueId | Message unique ID. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
To actually remove messages marked as deleted, use the Purge() method.
This method represents IMAP STORE command.