用于监视AppointmentItem取消的适当事件 [英] Appropriate event to monitor AppointmentItem Cancelation

查看:99
本文介绍了用于监视AppointmentItem取消的适当事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在取消AppointmentItem时运行一些代码,但是我尝试捕获的两个事件不止一次(Application.Application) .ItemSend和AppointmentItem.Write)。这让我重新思考我的逻辑并找到一个合适的
来实现它。我无法找到两个事件在我的情况下被触发两次的原因,因为我使用检查器包装器在新的检查器窗口上注册这些事件并在检查器关闭事件上取消注册它们。

I am trying to run some code upon cancellation of an AppointmentItem, however two of the events that I tried to capture fire more than once (Application.Application.ItemSend and AppointmentItem.Write). This bring me to re-think my logic and find a suitable place to implement it. I couldn't find a reason why the two events are fired twice in my case as I am using inspector wrapper to register these events on a new inspector window and Un-registering them on inspector close event.

请注意,我想监控可以取消/删除约会的所有可能情况。 I 需要一些紧急帮助来解决这个问题,任何帮助/建议都将受到高度赞赏。

Please note that I want to monitor all possible scenario where an Appointment can be canceled/deleted. I  need some urgent help to resolve this issue, any help/suggestion will be highly appreciated.

谢谢

推荐答案

为什么甚至需要任何督察活动?监视Application.ItemSend事件,检查是否将MeetingItem对象作为参数,检查消息类是否为"IPM.Schedule.Meeting.Resp.Neg"。或Class = 55(OlObjectClass.olMeetingResponseNegative)。
Why do you even need any inspector events? Monitor the Application.ItemSend event, check if you get a MeetingItem object as an argument, check that the message class is "IPM.Schedule.Meeting.Resp.Neg" or Class = 55 (OlObjectClass.olMeetingResponseNegative).


这篇关于用于监视AppointmentItem取消的适当事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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