Outlook 加载项桌面:Office.context.ui.close() 不适用于桌面版本
我正在为网络和桌面用户构建 Outlook 插件。 我正在努力寻找关闭桌面版本加载项的方法
在我的加载项中,我插入了一个调用
Office.context && Office.context.ui && Office.context.ui.closeContainer();
onClick 来关闭加载项的按钮。 这适用于该加载项的网络版本,但不适用于桌面版本, 我的代码有问题还是桌面版本不支持此方法?
环境设置: 微软 Outlook 2016 (16.0.5182.1000) 本地 Exchange 2016(内部版本 15.1.2375.7)
I'm building an outlook add-in for web and desktop users.
And I'm struggling to find the method that closes the add-in for the desktop version
In my Add-in, I inserted a button that invokes
Office.context && Office.context.ui && Office.context.ui.closeContainer();
onClick to close the add-in.
This works on the web version of the add-in but not on the desktop one,
Is there a problem with my code or is the desktop version not supporting this method ?
Environment setup :
Microsoft Outlook 2016 (16.0.5182.1000)
Exchange 2016 (build version 15.1.2375.7) on-premise
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该适用于桌面上的任务窗格。这是 closecontainer 方法:
但是最低要求集为1.5,不支持Outlook 2016。
另外,您可能会找到一个类似的线程在这里 。
It should work for task panes on the desktop. Here is the description for the closeContainer method:
But the minimum requirement set is 1.5 where Outlook 2016 is not supported.
Also you may find a similar thread here.