Dart.Mail Namespace > ImapMessage Class : Deleted Property |
Public ReadOnly Property Deleted As Boolean
Dim instance As ImapMessage Dim value As Boolean value = instance.Deleted
public bool Deleted {get;}
public: __property bool get_Deleted();
Marked messages are expunged when Mailbox.Purge is called, SelectedMailbox is set to null, or Close is used.
Use the Mailbox.Update() methods to modify flags on sets of messages.
Returns a default value if its value has not been populated with Get.
/// <summary> /// Sets the delete flag for the specified email. Email will be deleted by calling /// Mailbox.Purge(), or upon logout. /// </summary> /// <param name="message">Message to set the delete flag for.</param> public void DeleteMessage(ImapMessage message) { message.Update(true, ImapFlags.Deleted); }
''' <summary> ''' Sets the delete flag for the specified email. Email will be deleted by calling ''' Mailbox.Purge(), or upon logout. ''' </summary> ''' <param name="message">Message to set the delete flag for.</param> Public Sub DeleteMessage(ByVal message As ImapMessage) message.Update(True, ImapFlags.Deleted) End Sub