Have you released all references to the original object and since you're
using .NET code also called Marshal.ReleaseCOMObject and called the garbage
collector? Outlook caches items and their properties and the fact that
things work if you close and restart Outlook makes it look like it's a
caching problem. As long as an item is cached it will return its original
properties back.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Rog" wrote in message ...
I even tried using redemption and getting property 0x0E090102 but it
returns the entryid of the contacts folder (where it was deleted from) not
the entryid of the deleted items folder. but if I use OutlookSpy and look
at 0x0E090102 property then it shows the entryid of the Deleted Items
folder for that Contact.
Rog wrote:
public static object GetPropertyHelper(object targetObject,
string propertyName)
{
try
{
return targetObject.GetType().InvokeMember(propertyName,
System.Reflection.BindingFlags.Public |
System.Reflection.BindingFlags.Instance |
System.Reflection.BindingFlags.GetProperty,
null,
targetObject,
null,
System.Globalization.CultureInfo.CurrentCulture);
}
catch(System.Exception ex)
{
GlobalConstants.Log(log, "Error", "GetPropertyHelper",
ex);
return null;
}
}
and
object item = this.OutlookApp.GetNamespace("MAPI").GetItemFromID (entryID,
storeID);
Thanks so much.
Sue Mosher [MVP-Outlook] wrote:
How does GetPropertyHelper work? And how -- and when -- is Item
instantiated?