Difference between Outlook.Folder and Outlok.MAPIFolder

前端 未结 1 765
面向向阳花
面向向阳花 2021-02-04 11:26

I\'m not clear on the difference between the classes Folder and MAPIFolder in the namespace Outlook. When I review the code in the net, so

相关标签:
1条回答
  • 2021-02-04 12:15

    Folder has superseded MAPIFolder which is now deprecated. See related SO post. Folder has additional event hooks as compared to MAPIFolder

    Application.Session == Application.GetNamespace("MAPI") - they are interchangeable. See related SO post.

    MAPIFolder and GetNamespace() are carry overs from Outlook 2003 and below - they've just been kept for backwards compatibility. There's no way to avoid type casting with VSTO - you will constantly be boxing and unboxing.

    0 讨论(0)
提交回复
热议问题