如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项? [英] How to determine if an Office Add-in is running under Outlook desktop or Outlook web access?
本文介绍了如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法可以确定我的Office加载项是在Outlook桌面还是Outlook Web访问下运行?
解决方案
Hello Pooja,
您正在寻找的Office.js API: Office.context.mailbox.diagnostics.hostName
获取一个表示主机应用程序名称的字符串。
一个字符串,可以是以下值之一:
Outlook
,Mac
  ;或
OutlookOutlookWebApp
。
Is there a way where can i identify whether my Office Add-in is running under Outlook desktop or Outlook web access?
解决方案Hello Pooja,
Over there is the Office.js API you are looking for: Office.context.mailbox.diagnostics.hostName
Gets a string that represents the name of the host application.
A string that can be one of the following values:
Outlook
,Mac Outlook
orOutlookWebApp
.
这篇关于如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文