How to detect folder deleted event?

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

Voi Coi

Hi,

How can I detech folder deleted event and get information about deleting
folder? this event can be cancelled?

thanks,
Tuan Anh,
 
The Folders collection has a FolderRemove event you can subscribe to, but it
doesn't tell you which folder was deleted (it fires after the deletion). If
the folder is deleted and goes to the Deleted Items folder you can catch the
ItemAdd event on the Items collection of that folder but if the user
hard-deletes (Shift+Delete) and bypasses the Deleted Items folder the only
thing you can do is to search all folders that are in existence after the
deletion and see what's missing that was there before.

FolderRemove can not be canceled.
 
Back
Top