Folder events

M

manzoor

How do I manage folder events? Like I want to do something when a folder is
added in mail folders? What classes and events may I use?

I'm able to get the events when a subfolder is created. But I want to get
events when a folder is added not a subfolder.
 
K

Ken Slovak - [MVP - Outlook]

There is a Folders.FolderAdd() event you can subscribe to. For that to work
you need to get an object for each Folders collection you want to monitor.
So for Inbox, you'd get Inbox.Folders and subscribe to the event there.
You'd need to do that for every Folders collection you want to monitor.
 

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