How to detect folder deleted event?

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,
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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

Top