Howto: ask Inspector to refresh its item cache

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
 
J

j

Outlook doesn't refresh the cache till there are references to these
object, try to release the object by Marshal.ReleaseComObject.
 
K

Ken Slovak - [MVP - Outlook]

That wouldn't work for changes made by Extended MAPI, Outlook isn't aware of
those changes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top