ActiveUp.Net.Mail.Mailbox.DeleteMessage C# (CSharp) 메소드

DeleteMessage() 공개 메소드

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.
리턴 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();
		}