November 2007
Intermediate to advanced
928 pages
26h 9m
English
Way back in Chapter 4, we discussed the concept of managed folders. At that point, we hadn’t delved into the world of extended properties, so you had to fetch all of the subfolders of the root folder and look for the ManagedFolderInformation property on each subfolder. Though that approach does work, there is a more efficient way to do this.
As discussed in Chapter 4, the ManagedFolderInformation property can be used to determine which folders are managed and which are not. You can perform a FindFolder operation with a restriction and ask it to return only those folders that have managed folder information.[200] Here is the request:
<FindFolder xmlns=".../messages" xmlns:t=".../types" Traversal="Deep"> <FolderShape> <t:BaseShape>Default</t:BaseShape> ...