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

Free Support Forum - aspose.com

Getting Entry ID on a EnumerateMapiMessages folder pull

I'm looping the folders emails using this.. I need to pull the Entry Id for each message.. what is the best way to do this and how? Can you show code?

foreach (MapiMessage mail in folder.EnumerateMapiMessages())


Hi Paul,

Thank you for posting your inquiry.

If the whole purpose of your requirement is to get the entry id strings, you can use FolderInfo.EnumerateMessageEntryId method instead of enumerating MapiMessages. It will return enumerable list of string entry ids for the contents of a folder. Please try it at your end and let us know if you need any further information in this regard.