如何从VSTO Outlook加载项中检测Office 365加载项是否已处于活动状态,反之亦然? [英] How to detect if Office 365 addin is already active from a VSTO Outlook addin or vice-versa?

查看:184
本文介绍了如何从VSTO Outlook加载项中检测Office 365加载项是否已处于活动状态,反之亦然?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是该领域的程序员.

I am no programmer in this field.

我们有一个基于VSTO框架构建的插件,该插件可用于所有Windows Outlook应用程序.最近,我们构建了O365插件,它解决了我们分发到Mac的问题.但是,现有的Windows Outlook用户会看到两个不同的加载项.有没有一种方法可以检测是否已经通过O365插件安装了Outlook Windows插件?反之亦然?

We had an addin built on VSTO framework, which works for all Windows Outlook applications. Recently, we built O365 addin and it solves our problem of distribution to Mac. However, the existing Windows Outlook users see two different addins. Is there a way to detect if Outlook windows addin already installed through O365 addin or vice-versa?

推荐答案

不幸的是,没有用于检测COM/VSTO加载项安装或从Office.js API枚举已安装加载项的功能.如果您有很好的业务案例,则可以在上发布请求. https://officespdev.uservoice.com/.

Unfortunately, there is no functionality to detect COM/VSTO add-on installation or enumerate installed add-ons from Office.js API. If you have strong business case, you may post request at https://officespdev.uservoice.com/.

另一方面,您可以检查是否从VSTO/COM附加组件内部安装了特定的Office.js附加组件.为了执行此检查,您需要知道Office.js加载项ID,这应该不是问题,因为这是您公司的产品.您需要在邮件的相关内容表中枚举消息通过使用 IMAPIFolder 界面.找到具有"IPM.Configuration.ClientExtension.00000000000000000000000000000000"类的消息后,其中零必须是您的Office JS加载项的ID.如果找到该消息,则Office.js加载项已安装到用户的邮箱中.

On other hand, you are able to check if particular Office.js add-on installed from inside of VSTO/COM add-on. In order to perform this check you would need to know Office.js Add-on ID and this shouldn't be the problem as this is your company product. You would need to enumerate messages in Associated contents table of the Inbox folder by using IMAPIFolder interface. And after find the message with the class "IPM.Configuration.ClientExtension.00000000000000000000000000000000", where zeros must be ID of your Office JS Add-in. If the message has been found the Office.js add-on has been installed into the user's mailbox.

您甚至可以做更多的事情,例如

You may do even more, for example share the add-on properties and settings between VSTO/COM and O365 add-ons.

这篇关于如何从VSTO Outlook加载项中检测Office 365加载项是否已处于活动状态,反之亦然?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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