事件处理程序时,将触发的outook变化的连接状态 [英] EventHandler that fires when the connection status of an outook changes

查看:205
本文介绍了事件处理程序时,将触发的outook变化的连接状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Outlook插件使用VSTO&安培; C#。我需要一个事件处理程序时触发的outook变化的连接状态(从在线模式的即,为脱机,反之亦然的)。那可能吗?而出现这样的事件处理程序?

I am working on an Outlook Add-in using VSTO & C#. I need an event handler that fires when the connection status of an outook changes (i.e. from online mode to offline and vice versa). Is that possible? And is there such an event handler?

我一直在网上搜索了很多,可惜我什么也没找到。我真的很感激,如果任何人有这种洞察力,甚至一个可能的解决方案。

I've been searching alot on the net, but unfortunately I found nothing. I would really appreciate if anyone have insight on that or even a possible solution.

注:前景,我现在用的就是Outlook 2007中

N.B: The outlook that I am using is Outlook 2007.

推荐答案

有没有事件当Exchange脱机或重新联机触发。请参见 MSDN论坛引用

There is no event that triggers when Exchange goes offline or back online. See MSDN forum reference.

你能做的最好是通过的 Application.Session.ExchangeConnectionMode 。请参见相关论坛帖子

The best you can do is detect the current Exchange connectivity mode via Application.Session.ExchangeConnectionMode. See related forum post.

这篇关于事件处理程序时,将触发的outook变化的连接状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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