简体   繁体   English

如何判断VSTO加载项是否已加载?

[英]How can I tell if a VSTO Add-in is loaded?

I'm working on a VSTO add-in for Outlook that, if another custom VSTO is loaded, will perform a specific action. 我正在为Outlook开发VSTO加载项,如果加载了另一个自定义VSTO,它将执行特定操作。 How would I determine if that VSTO is loaded? 我如何确定该VSTO是否已加载? I've not delved too far into COM as of yet other than writing a number of add-ins. 除了编写许多插件外,我对COM的研究还不够深入。

You can check the key: 您可以检查密钥:

"HKLM\\Software\\Microsoft\\Office\\Outlook\\Addins[YourAddInName]" “ HKLM \\软件\\ Microsoft \\ Office \\ Outlook \\ Addins [YourAddInName]”

in the registry. 在注册表中。

Existence of the key means that the AddIn is installed. 密钥的存在意味着已安装插件。 You can also read the value LoadBehaviour under the above key, the value 3 means that the addin is loaded/to be loaded normally. 您也可以在上述键下读取值LoadBehaviour,值3表示加载项已加载/正常加载。 The value 2 means that the addin has problems. 值2表示该插件有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用新版本更新 VSTO excel 加载项? - How can I update a VSTO excel add-in with a new version? 我可以从 VSTO 加载项插入内容加载项吗 - Can I insert content add-in from VSTO add-in 我无法访问 MS Project VSTO 加载项中的列 - I can't access columns in MS Project VSTO Add-In 如何使用C#检测VSTO加载项中的单元格文本更改? - How can I detect cell text changing in VSTO add-in with C#? 当电子表格 window 最小化时,如何获取我的 Excel VSTO 插件以更新单元格? - How can I get my Excel VSTO Add-in to update cells when the spreadsheet window is minimized? 如何为VSTO加载项显示我的GUID - How do I make my GUID visible for a VSTO Add-in 我将如何在单元测试项目中实例化 VSTO 加载项? - How would I instantiate a VSTO add-in in a unit test project? 如何在 VSTO 中添加现有的 Excel 加载项 - How to add existing Excel add-in in VSTO Outlook VSTO加载项:无法解析收件人名称 - Outlook VSTO Add-In: Can not resolve recipientname 如何在 PowerPoint VSTO c# 加载项中创建 function 加载项,它将当前幻灯片更改为下一张幻灯片,我该如何测试它? - how to create a function in PowerPoint VSTO c# Add-in which will change the current slide to the next slide and how can I test it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM