如何使用IConnectionPoint捕捉 "Forward As Attachment "事件?

问题描述 投票:0回答:1

在本文中。如何检测Outlook事件..., Dmitry Streblechenko 概述了如何订阅TypeLibrary中未列出的Outlook事件。

这些步骤会不会是要遵循的?

  1. 使用一些Ole Viewer来定位问题对象的GUID。
  2. 将该GUID传递给 IConnectionPointContainer 为了检索一个 IConnectionPoint 对象。
  3. 调用Advise UnAdvise(等)。

这样看起来对吗? 有人有什么示例代码吗?

c# outlook com outlook-addin addin-express
1个回答
0
投票

ItemEvents_10 GUID传递给 IConnectionPointContainerFindConnectionPoint{0006302B-0000-0000-C000-000000000046} (你可以看到它在 OutlookSpy).ItemEvents{0006303A-0000-0000-C000-000000000046}

© www.soinside.com 2019 - 2024. All rights reserved.