本文介绍了EWS.如何在没有初始同步的情况下获取最新的SyncState?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请考虑我在一个文件夹中有100,000条消息.我希望能够与最新更改同步,但是不需要任何旧消息.要求与

Consider that I have 100,000 messages in a folder. I want to be able to synchronize with latest changes, but I don't need any old messages. Asking for initial synchronization with

SyncFolderItems(..., null /*syncState*/)? 

将带回所有100,000条消息(我不需要).如何在不从服务器读取100,000个实体的情况下直接跳到最新的SyncState?

would bring back all 100,000 messages (that I don't need). How can I jump directly to the latest SyncState without reading 100,000 entities from server?

推荐答案

您不能解决此问题.您需要遍历集合一次.处理完所有现有条目后,同步状态应该比您的143kb小得多.

You can't work around that. You need to iterate through the collection once. After you have processed all existing entries, the syncstate should be much smaller than your 143kb.

这篇关于EWS.如何在没有初始同步的情况下获取最新的SyncState?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 11:20