How to delete multiple contacts through c# code

  • Thread starter Thread starter pramod
  • Start date Start date
P

pramod

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
 
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.
<plug>Redemption supports such cases through the RDOItems.CollectionModified
event - http://www.dimastr.com/redemption/rdo/RDOItems.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
 
Back
Top