IGmailClient.DeleteMessage
Contents
[
Hide
]DeleteMessage(string, bool)
Moves the specified message to the trash if moveToTrash true, or permanently deletes if false.
public void DeleteMessage(string id, bool moveToTrash)
Parameter | Type | Description |
---|---|---|
id | String | The ID of the message to trash or delete. |
moveToTrash | Boolean | Moves the specified message to the trash if true, or permanently deletes if false. |
See Also
- interface IGmailClient
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email
DeleteMessage(string)
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer overriding method DeleteMessage with parameter moveToTrash instead.
public void DeleteMessage(string id)
Parameter | Type | Description |
---|---|---|
id | String | The ID of the message to delete. |
See Also
- interface IGmailClient
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email