Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Inbox
--ONE
----TWO
----THREE
--TWO
--THREE
Above is the structure of my inbox. The folder names "TWO" and "THREE" is there in folders as well as subfolders of "ONE". How can I get the folder id of the child folder of "TWO" in the parent folder "ONE"?

What I have tried:

FindFoldersResults findResults = service.FindFolders(WellKnownFolderName.Inbox, new FolderView(int.MaxValue) { Traversal = FolderTraversal.Deep });


With this line of code, I get all the folders and sub folders but unable to get the folder id of child folders of "ONE". Please help.
Posted
Updated 5-Feb-17 20:00pm

1 solution

User recursion to loop through the directory to get the IDs of the child node.

How to: Iterate Through a Directory Tree (C# Programming Guide)[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900