EWS. How to get latest SyncState without initial synchronization?

此生再无相见时 提交于 2019-12-05 22:18:51

问题


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*/)? 

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?


回答1:


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.



来源:https://stackoverflow.com/questions/7923370/ews-how-to-get-latest-syncstate-without-initial-synchronization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!