如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项? [英] How to determine if an Office Add-in is running under Outlook desktop or Outlook web access?

查看:173
本文介绍了如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法可以确定我的Office加载项是在Outlook桌面还是Outlook Web访问下运行?

解决方案

Hello Pooja,


您正在寻找的Office.js API:  Office.context.mailbox.diagnostics.hostName


 


获取一个表示主机应用程序名称的字符串。


一个字符串,可以是以下值之一:  Outlook ,  Mac
Outlook
  ;或  OutlookWebApp


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: OutlookMac Outlook or OutlookWebApp.


这篇关于如何确定Outlook桌面或Outlook Web访问下是否正在运行Office加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆