调用“SyncFolderItems”会在收到项目时返回项目吗?

发布于 2024-12-18 12:43:58 字数 309 浏览 6 评论 0 原文

循环调用 SyncFolderItems(直到 MoreChangesAvailable 为 false))是否会返回我第一次调用 SyncFolderItems 后收到的项目?

例如,假设我的邮箱中有 1,000 个项目,并且我在没有同步状态的情况下调用 SyncFolderItems。第一次调用 SyncFolderItems 后,我收到一个项目,其中是否包含我第一次调用 SyncFolderItems 后收到的新电子邮件?

Does calling SyncFolderItems in a loop (until MoreChangesAvailable is false) return items that have been received after my first call to SyncFolderItems?

For example, say I have 1,000 items in my mailbox and I make a call to SyncFolderItems with no sync state. After my first call to SyncFolderItems I receive an item will it include a new email I receive after I first call SyncFolderItems?

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

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

发布评论

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

评论(1

奢望 2024-12-25 12:43:59

每次调用 SyncFolderItems 都会 href="http://msdn.microsoft.com/en-us/library/aa565970%28v=exchg.140%29.aspx" rel="noreferrer">SyncState 其中是自上次同步调用以来时间戳和项目索引(如果 > 512 个项目)的哈希值。当您再次调用 SyncFolderItems 时,您需要包含最后一个 SyncState 以确保您仅获取自上次同步点以来的新项目。

如果您的超过 512 个项目在文件夹中 - 您需要使用新的 SyncState 再次调用 SyncFolderItems

这是示例帖子< /a> 使用 EWS 托管 API。

Each call to SyncFolderItems will respond with SyncState which is a hash of the timestamp and item index (if > 512 items) since the last synchronization call. When you call the SyncFolderItems again, you need to include the last SyncState to ensure you only get new items since your last synchronization point.

If you have more than 512 items in the folder - you need to call SyncFolderItems again with the new SyncState.

Here is a sample post using EWS Managed API.

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