This is a weird one.
I have a saved Outlook MailItem (.msg file) opened from outside of Outlook, that for some reason does not yet have its EntryID set:
If I inspect the MailItem while debugging, the EntryID is either null or an empty string...
... BUT if (for example) I expand
m_ObjectToDataMap until I get to
_rcw and expand that object's
Dynamic View - that is when the EntryID gets set.
It's as if the MailItem isn't fully loaded yet, and some inspection of the values in the debugger somehow completes the initialization of the MailItem.
None of these fix the problem. Why does this happen? How would I fix or get around this issue? Any help would be much appreciated.
c# outlook vsto outlook-addin