无法在 Outlook MailItem 上找到任何 AttachmentDelete/Removed 事件
每当将附件添加到正在撰写的邮件项目中时,我都会在 MailItem 的 AttachmentAdd 事件上执行一些操作,并且一切正常。现在,当删除附件时,我想撤消相同的操作,并且我没有看到任何 AttachmentDelete/Removed 事件或类似的事件。
当从正在撰写的邮件项目中删除附件时,有没有办法获取通知/事件?
任何正确方向的指示将不胜感激。
问候,
I am doing some stuff whenever an attachment is added to a being-composed mailItem, on AttachmentAdd event of MailItem, and things work fine. Now I want to undo the same stuff, when an attachment is removed, and I dont see any AttachmentDelete/Removed event or anything similar.
Is there a way to get a notification/event when an attachment is removed from a being-composed mailItem?
Any pointers in the right direction would be really appreciated.
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然 OutlookInterop v11 没有 AttachmentRemove 事件,但 v12 有。所以更新参考就完成了这项工作。
Apparently OutlookInterop v11 does not have AttachmentRemove event, but v12 does. So updating the reference did the job.