如何使用 EWS Java API 访问 MAPI 属性?

发布于 2024-11-18 15:22:47 字数 164 浏览 3 评论 0原文

我正在处理 Exchange 电子邮件并确定电子邮件何时被阅读。我相信可以使用 MAPI 属性之一 (PR_LAST_MODIFICATION_TIME) 来获取此信息。

有人可以帮助我使用 EWS Java API 获取此属性值吗?我可以找到 C# 的等效示例,但不能找到 Java 的等效示例。

I am working to process Exchange emails and figure out when an e-mail was read. I believe this information can be obtained using one of the MAPI Properties (PR_LAST_MODIFICATION_TIME).

Can someone help me to get this property value using EWS Java API? I could find equivalent samples for C# but not for Java.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝梦月影 2024-11-25 15:22:47

C# 和 Java 的 EWS 托管 API 不一样吗? Item 类具有属性 LastModifiedTime ,您可以将它与从 Item 派生的类的所有对象一起使用,所以我真的不明白您有什么问题。

示例代码:

Item item = Item.Bind(service, itemId);
if(item.LastModifiedTime > lastCheckTime)
{
    ProcessItem(item); //here you put your code of course
}

Isn't EWS Managed API the same for C# and for Java? Item class has property LastModifiedTime and you can use it with all objects of classes derived from Item so I really do not see what you having problem with.

Sample code:

Item item = Item.Bind(service, itemId);
if(item.LastModifiedTime > lastCheckTime)
{
    ProcessItem(item); //here you put your code of course
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文