Syncing Items Within a Folder

Now that we have exhausted the topic of syncing the folder hierarchy, we will turn our attention to syncing items within the mailbox. Syncing the items contained within a mailbox is accomplished using the SyncFolderItems Web method. While SyncFolderHierarchy performs a deep traversal sync of all folders that have changed since the point in time suggested by the supplied SyncState, SyncFolderItems will sync only those items contained within the folder that you specify. Example 16-22 shows the basic structure of a SyncFolderItems request.

Example 16-22. Basic structure of a SyncFolderItems request

<SyncFolderItems xmlns=".../messages" xmlns:t=".../types"> <ItemShape/> <SyncFolderId/> <SyncState/> <Ignore/> <MaxChangesReturned/> ...

Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.