Question about multiple instances of a MapiFolder object
In cases like that you are probably best off resetting the MAPIFolder object
in your wrapper class to reflect the new item. You don't want to be holding
outdated references. You can add a public property to your wrapper class,
say called Folder and set that to the updated MAPIFolder object.
Thanks for answering. I did as you said. But I simply was wondering
about the general approach behind that. If the wrapper class didn't
check on the FolderChange event it would never be informed about the
name change. I am quite a COM beginner and I thought the whole AddRef/
Release stuff had been devised to avoid things like that. Now I know
better.
|