![]() In both the initial call and the subsequent calls, the folders are retrieved in batches of ten, by using successive calls to the SyncFolderHierarchy method, until no more changes remain. When the method completes, save the cSyncState value locally to use in the next SyncFolderHierarchy method call. During the initial call to the ExchangeService.SyncFolderHierarchy method, set the cSyncState value to null. WHS FOLDER SYNC HOW TOThe following code example shows how to get an initial list of folders in a root folder and then get a list of changes to folders in the root folder that have occurred since the previous synchronization. Get the list of all folders or changed folders by using the EWS Managed API How and when you retrieve changes in the future depends on the synchronization design pattern your application is using. After the client receives the list of initial or changed folders, it makes updates locally. To perform folder synchronization by using EWS, you request the initial list of folders in the root folder by using the SyncFolderHierarchy operation, parse the response, and then at some point in the future get the changes to the folders in the root, and parse the response. You then update the value of the cSyncState parameter during subsequent calls to get the list of new and changed folders. If you're performing folder synchronization by using the EWS Managed API, you first get the initial list of folders in the root folder by using the ExchangeService.SyncFolderHierarchy method. Folder synchronization gets the initial list of folders from a root folder and then, over time, gets changes that were made to those folders and gets new folders as well. Find out how to use the EWS Managed API or EWS to get a list of folders, or a list of folders that have changed, in order to synchronize your client.ĮWS in Exchange uses item synchronization and folder synchronization to sync mailbox content between the client and server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |