ActiveUp.Net.Mail.Mailbox.DeleteMessage C# (CSharp) Method

DeleteMessage() public method

Deletes the specified message.
public DeleteMessage ( int messageOrdinal, bool expunge ) : void
messageOrdinal int Ordinal position of the message to be deleted.
expunge bool If true, message is permanently removed. Otherwise it is marked with the Deleted flag.
return void
		public void DeleteMessage(int messageOrdinal, bool expunge)
		{	
			ActiveUp.Net.Mail.FlagCollection flags = new ActiveUp.Net.Mail.FlagCollection();
			flags.Add("Deleted");
			this.AddFlagsSilent(messageOrdinal,flags);
			if(expunge) this.SourceClient.Expunge();
		}