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