We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to check the folder type of ExchangeFolderInfo object

How to check the folder type of ExchangeFolderInfo object. please share code for the same .

thanks

@ravikumarchopra,

Thank you for contacting Aspose support team.

Please give a try to the following sample code and share the feedback.

EWSClient client = (EWSClient)EWSClient.GetEWSClient("https://exchange.domain.com/ews/Exchange.asmx", "username", "password", "");
var info = client.ListSubFolders("Root");
foreach(var folderInfo in info)
{
    Console.WriteLine(folderInfo.DisplayName + ", " + folderInfo.FolderType);
}