我正在尝试弄清楚如何使用将于 2024 年底发布的新 Outlook 作为默认 Outlook(链接)。
我无法初始化 Interop 应用程序:
_application = Marshal.GetActiveObject("Outlook.Application") as Microsoft.Office.Interop.Outlook.Application;
我收到以下错误:
System.Runtime.InteropServices.COMException:'操作不可用 (HRESULT 异常:0x800401E3 (MK_E_UNAVAILABLE))'
知道我错过了什么吗?我是否有可能无法再在新 Outlook 中使用此 API?我无法迁移到 Web 加载项,因为我必须能够从我的应用程序与 Outlook 进行通信。
新的 Outlook (Monarch) 是 Windows Mail 和 Windows Calendar 的替代品,而不是桌面 Outlook(Office 套件的一部分),后者仍然受到完全支持。
除了 Web (JS) 插件之外,Monarch 确实没有可编程访问的 API。
P.S. 对于那些反对答案的人:不要开枪射杀信使。如果您不喜欢 Monarch 没有可用的 API,请与 Microsoft 合作。我没有设计产品。