如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件.

编程入门 行业动态 更新时间:2024-10-24 16:29:02
本文介绍了如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

开箱即用的Outlook提供以下内容:

Out of the box outlook provides the following:

((Outlook.ItemEvents_10_Event)this._mailItem).Reply += new Outlook.ItemEvents_10_ReplyEventHandler(MailItem_Reply); ((Outlook.ItemEvents_10_Event)this._mailItem).ReplyAll += new Outlook.ItemEvents_10_ReplyAllEventHandler(MailItem_ReplyAll); ((Outlook.ItemEvents_10_Event)this._mailItem).CustomAction += new Outlook.ItemEvents_10_CustomActionEventHandler(MailItem_CustomAction); ((Outlook.ItemEvents_10_Event)this._mailItem).Forward += new Outlook.ItemEvents_10_ForwardEventHandler(MailItem_Forward);

但是,有没有一种方法可以检测其他事件,例如:

However, is there a way to detect other events such as:

  • 回复会议
  • 转发为附件
推荐答案

OOM会将ForwardAsAttachment公开为带有0x0000F618的事件,只是类型库没有公开它. 回复会议"为0x0000F5FD.

OOM exposes ForwardAsAttachment as an event with the dispid of 0x0000F618, it is just the type library does not expose it. "Reply with meeting" is 0x0000F5FD.

您可以使用原始COM使用IConnectionPointContainer/IConnectionPoint挂接这些事件-您可以在 OutlookSpy :选择一个项目,在OutlookSpy工具栏上单击项目"按钮,转到事件"选项卡,单击转发为附件",然后在项目"窗口底部的事件日志"列表中查看记录的事件

You can hook those events using IConnectionPointContainer / IConnectionPoint using raw COM - you can see the events firing in OutlookSpy: select an item, click Item button on the OutlookSpy toolbar, go to the Events tab, click "Forward As Attachment", see the event logged in "Events Log" list ta the bottom of the Item window.

更多推荐

如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件.

本文发布于:2023-06-08 21:26:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/589333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:附件   事件   会议   quot   Outlook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!