How To Get all ITEMS from Folders and Sub-folders of PublicFolders
Posted
by
user1891567
on Stack Overflow
See other posts from Stack Overflow
or by user1891567
Published on 2012-12-12T04:22:01Z
Indexed on
2012/12/12
5:03 UTC
Read the original article
Hit count: 538
c#
How to retrieve all items from "public folders" and its "sub-folders" in exchange server2010 uisng managed API???
rootfolder = Folder.Bind(service,WellKnownFolderName.PublicFoldersRoot);
rootfolder.Load();
foreach (Folder folder in rootfolder.FindFolders(new FolderView(int.MaxValue)))
{
FindItemsResults<Item> findResults = folder.FindItems(iv);
foreach (Item item in findResults)
{
//get item info;
}
}
"If i do like this i am not getting items present in sub-folders of it..public folders does not support deep traversal queries too..How can i get items from sub-folders of public folders???"
© Stack Overflow or respective owner