禁用桌面版 Office 365 Outlook 加载项

Disable Office 365 Outlook Add-in for desktop

我开发了适用于 Web 的 Office 365 Outlook 加载项。桌面也自动支持它。我只想为桌面禁用该应用程序。我想我们需要更改 Manifest 文件中的某些内容,但我找不到任何线索。谁能帮我实现这个目标??

Office add-in 旨在 cross-platform 开发 Office 解决方案。目前不支持限制平台。以下是“Host”元素的规范,用于指定 Office 宿主应用程序,供您参考:

可以参考here about more detail of host specifying in the manifest. And if you want to the Office add-in to support this feature, you can try to submit the feedback here.

虽然您不能限制平台,但您可以通过编程检测您所在的平台。

https://dev.outlook.com/reference/add-ins/Office.context.mailbox.diagnostics.html

Office.context.mailbox.diagnostics.hostName

将 return Outlook、Mac Outlook 或 OutlookWebApp。

您可以为不想支持的客户端显示错误消息。尽管这通常违背了 "write once, run anywhere"

平台的核心原则