View Single Post
  #4  
Old December 20th 06, 05:39 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to detect a user-deleted AppointmentItem?

That sounds like a good approach.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"OctopusThu" wrote in message ...
Thank you, Sue.
I can now cast the item.Parent property to an Outlook.MAPIFolder object, and
compare its EntryID with the former folder's EntryID, so as to determine
whether the item has been deleted.

Do you have some more safer/smarter method to do this?

"Sue Mosher [MVP-Outlook]" wrote:

Deleting the item just moved it to the Deleted Items folder. It has the same EntryID there that it did in its original location. Check the Parent property of the item that GetItemFromID returns.



"OctopusThu" wrote in message ...
I deleted an AppoitmentItem using the Outlook GUI. But still I can get the
AppointmentItem with the NameSpace.GetItemFromID() method. I guessed the
method should have returned a null value but I was wrong.

Then, how can I detect whether an AppointmentItem with the speciied EntryID
has been deleted by using the GUI?


Ads
 

Rapidshare eBooks Download - Watch Naruto Shippuuden - Halifax - Free Credit Reports - Mortgage Calculator