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

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

问题描述

我不是这个领域的程序员.

I am no programmer in this field.

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

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.

您可以做更多,例如 在 VSTO/COM 和 O365 加载项之间共享加载项属性和设置.

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天全站免登陆