Exchange Web Services SyncFolderItems 重复项目在实际重复时将 IsRecurring 设置为 false

发布于 2024-12-22 06:34:07 字数 314 浏览 2 评论 0原文

我正在编写一个应用程序,将用户的日历同步到本地商店。我正在使用 Exchange Web Services (EWS) 和 SyncFolderItems 方法来提取更改。这一切都很完美,直到我发现同步项目不包括“定期”约会。

另一篇 stackoverflow 文章指出,这是因为它们是“虚拟的”。但它确实包括“主人”的任命。问题是,那很好。我正在支持重复的第三方日历上呈现约会,因此我只需要存储约会中的重复信息,然后我可以将其翻译到我的日历上,这样它将显示正确的信息。

然而,当我检查“IsRecurring”字段时,它说它是错误的,因为它显然是一个定期约会。有人遇到过这个吗?

I am writing an application which synchronises users' calendars into a local store. I am using Exchange Web Services (EWS) and the SyncFolderItems method to pull down the changes. This all worked perfectly until I discovered the synchronised items don't include "Recurring" appointments.

Another stackoverflow article suggested that this is because they are "virtual". It does include the "master" appointment though. The thing is, that's fine. I am rendering the appointments on a third party calendar that supports recurrance, so I just need to store the recurrance info from the appointment and I can translate that onto my calendar, so it will show the correct information.

However, when I check the "IsRecurring" field, it says it's false when it is clearly a recurring appointment. Anybody come across this?

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

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

发布评论

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

评论(2

梦里泪两行 2024-12-29 06:34:07

自从我试图过滤掉重复出现的项目以来,我注意到了同样的事情。我最终查询并检查了 CalendarItemType(http://msdn.microsoft.com/en-us/library/exchange/aa494158(v=exchg.140).aspx) 来确定该项目是否是重复的一部分无论是否,此属性都可以在 SyncFolderItems 形状中查询。

I have noticed the same thing since I was trying to filter out recurring items. I ended up querying for and checking the CalendarItemType(http://msdn.microsoft.com/en-us/library/exchange/aa494158(v=exchg.140).aspx) instead to determine if the item was part of a recurrence or not, this property is queryable in the SyncFolderItems shape.

芸娘子的小脾气 2024-12-29 06:34:07

似乎 IsRecurring 并不总是设置正确(grr...)。解决方案是检查 CalendarItemType 字段(如上所述),如果它等于 RecurringMaster - 那么 IsRecurring 应该为 true。 其他可能的值包括

  • < code>Single
  • Occurrence
  • Exception

尽管在 SyncFolderItems 的情况下,它将是 RecurringMaster单身 我相信。

Seems that IsRecurring doesn't always get set right (grr...). Solution is to check the CalendarItemType field (mentioned above) and if it's equal to RecurringMaster -- Then IsRecurring should be true. Other possible values include:

  • Single
  • Occurrence
  • Exception

Though in the case of SyncFolderItems it will either be RecurringMaster or Single I believe.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文