Howto: ask Inspector to refresh its item cache

  • Thread starter Thread starter tonyl
  • Start date Start date
T

tonyl

Hi,

I have written an application which update the content of contact and
appointment in outlook using Extended MAPI.

However, I found that once the user views the appointment A through the outlook's
inspector, the outlook will cache the content.
1. open the appointment A by outlook inspector.
2. my application update the appointment A through MAPI
3. open the appointment A by outlook inspector again. --> the content of
appointment A doesn't change.
4. open the appointment A by outlookspy, --> i can see that the properties
have been updated.

How to ask the outlook refresh the data cache after my application update
the data through MAPI?

Regards,
Tony
 
Outlook doesn't refresh the cache till there are references to these
object, try to release the object by Marshal.ReleaseComObject.
 
That wouldn't work for changes made by Extended MAPI, Outlook isn't aware of
those changes.
 
Back
Top