A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to delete multiple contacts through c# code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 27th 06, 11:35 AM posted to microsoft.public.outlook.program_addins
pramod
external usenet poster
 
Posts: 2
Default How to delete multiple contacts through c# code

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
  #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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I delete multiple contacts from distribution lists? Natasha. Outlook - Using Contacts 1 December 18th 06 03:09 PM
how do i automatically delete multiple duplicate calendar entries? crusty_rusty Outlook - Calandaring 0 September 4th 06 08:46 PM
How to merge multiple Contact Lists into one or Delete extra list Trinity Outlook - Using Contacts 0 September 1st 06 11:32 PM
Cannot delete multiple personal folders within Outlook FalcoPilot Outlook - Using Contacts 2 May 9th 06 07:50 PM
How can I easily delete multiple duplicate calendar entries? SethATP Outlook - Calandaring 1 April 28th 06 03:32 PM


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.