How can I detect a folder is deleted?

  • Thread starter Thread starter Voi Coi
  • Start date Start date
V

Voi Coi

Hi,

Can I handle Outlook folder delete event? and how to do? and can I cancel
this event? I saw some add-in can show Yes/No message box for confirmation
when I delete a folder.

thanks,
 
The Folder.Remove event for a Folders collection tells you a folder was
deleted but not which folder and it fires after the deletion. There is no
other event you could use in the Outlook object model that would fire before
the folder is actually deleted and let you cancel the deletion.

In Extended MAPI coding (C++ or Delphi only) I believe you can handle what
you are talking about but that's it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top