View Single Post
  #2  
Old December 27th 06, 06:22 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to delete multiple contacts through c# code

Items.ItemRemoved event fires when less than 16 or so items are being
deleted at the same time.
On the Extended MAPI level, ItemRemoved event corresponds to the
(fnevTableModified, TABLE_ROW_DELETED) notification. If more than 16 or so
items are modified/deleted at the same time, Exchange provider collapses all
the pending notifications into a single (fnevTableModified, TABLE_CHANGED)
or (fnevTableModified, TABLE_RELOAD) notification, which the Outlook object
model does not expose at all.
plugRedemption supports such cases through the RDOItems.CollectionModified
event - http://www.dimastr.com/redemption/rd...ems.htm#events /plug

Why do you need that event? MAPI events are not designed for any kind of
synchronization.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

pramod wrote in message ...
Hi all,

i like to know which event fires when we try to delete multiple contacts
from the contact folder.

say for example there are 5 contacts and i want to delete all the
contacts.But no events are get fired in this scenario.

while deleting contacts one by one both selection_on_change and
item_removed events gets fired i can track that but not when i select all
the contacts.

comments and suggestions apprieciated

pramod

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com



Ads