Exchange Folders List

Hi

How can we get the list of all folders through exchange client?

thanks

Hi Haseeb,

Thank you for writing to Aspose support team.

ListSubFolders()
and ListPublicFolders() fiunction can be used to retrieve all the
folders from the exchange client as shown in the following code.

IEWSClient client = GetAsposeEWSClient();
ExchangeFolderInfoCollection coll = client.ListPublicFolders();
ExchangeFolderInfoCollection coll2 = client.ListSubFolders(client.GetMailboxInfo().RootUri);

You may also have a look at the following links:

Thanks


it worked.

Hi Haseeb,


You are welcome and please feel free to write to us if you have any other query about working with Aspose.Email API. We shall be happy to assist you further.