【发布时间】:2014-07-22 05:31:03
【问题描述】:
我找到了两种创建 Outlook mailItem 对象的方法
Outlook.MailItem oMsg = (Outlook.MailItem)Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olMailItem);
和
Outlook.Application oApp = new Outlook.Application();
Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
这两种代码有什么区别,哪一种更好更安全?
【问题讨论】:
标签: outlook outlook-addin createobject mailitem