Last updated 11 months ago
Component that deletes email messages in MS Exchange.
Operation type
LTools.Office.Model.OMailDeleteTypes
Type of deletion operation
Messages*
List<LTools.Office.Model.OMailMessage>
List of messages to be deleted
LTools.Office.MSExchangeApp app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain"); List<LTools.Office.Model.OMailMessage> msg = app.ReadMail("Inbox", true, false, 10); app.DeleteMail(msg[0], LTools.Office.Model.OMailDeleteTypes.MoveToDeletedItems);
app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain") msg = app.ReadMail("Inbox", True, False, 10) app.DeleteMail(msg[0], LTools.Office.Model.OMailDeleteTypes.MoveToDeletedItems)
var app = _lib.LTools.Office.MSExchangeApp.InitSvc(wf, _lib.Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain"); var msg = app.ReadMail("Inbox", true, false, 10); app.DeleteMail(msg[0], _lib.LTools.Office.Model.OMailDeleteTypes.MoveToDeletedItems);