How to block a new item

Add-in Express™ Support Service
That's what is more important than anything else

How to block a new item

Posts: 31
Joined: 2007-02-09
I've been looking around at the samples but I can find out what I should do to stop a new adding a new item to a folder. Basically I want a read only folder. Is there an override for creating a new item where I can intercept the call and return a failure so that no item is created?

Posted 15 Feb, 2007 04:32:14 Top
Sergey Grischenko

Add-in Express team

Posts: 7233
Joined: 2004-07-05
Hi Richard.

To prevent of saving a new item to a folder you can use the OutlookItemEventsClass class. This class is added by the 'Outlook Item Events Class' wizard in the 'Add New Item' dialog. Please use the 'ProcessWrite' event handler to disallow the writing process.

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 15 Feb, 2007 18:13:34 Top