How to check the folder type of ExchangeFolderInfo object. please share code for the same .
thanks
How to check the folder type of ExchangeFolderInfo object. please share code for the same .
thanks
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);
}