Microsoft Outlook 2010 中的活动就绪了吗?
Microsoft Outlook 2010 中是否有一个可以订阅的事件,以便了解 Outlook 何时完成初始化以及所有组件、文件夹等已加载?
Is there an event in Microsoft Outlook 2010 which one can subscribe on, in order to known when Outlook has finished initializing and all components, folders etc. have been loaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不确定 VSTO,但优秀的 COM 插件会出于此目的获取 StartupComplete“事件”(通过 IDTExtensibility2)。
Not sure about VSTO but good ol' COM addins get the
StartupComplete
"event" (viaIDTExtensibility2
) for exactly that purpose.好的,我找到了我需要做什么...
http://msdn. microsoft.com/en-us/library/ff869298.aspx
Ok, I found out what I needed to do...
http://msdn.microsoft.com/en-us/library/ff869298.aspx
据我所知。通常,插件不会执行任何需要与许多 Outlook 对象通信的操作,直到发生某些触发事件(例如打开邮件或创建新检查器),因此您通常会看到一些自定义代码被挂钩。
在我的插件中,连接到启动的代码会执行诸如加载一些配置之类的操作,并且可能连接到数据库(尽管我倾向于按需执行而不是在启动时执行一次)。
Not that I'm aware of. Usually, addins don't do anything that requires talking with many outlook objects till some triggering event happens (like opening a mail, or creating a new inspector) so THAT'S when you'd typically see some custom code hooked in.
In my addins, the code connected to startup does things like load up some config, and maybe connect to a DB (although even that I tend to do on demand vs once at startup).