FolderInfo.EntryId

Hi there, I am using the Folder Entry ID as Outlook will provide it as a string, just like a message's entry Id. However, when it is returned by Aspose as byte[], it begins with 4 bytes of \0, and then I can't determine what the rest is supposed to be. I have tried different encodings, all of which come out differently. Do you know how I can get this property "EntryId" from the folders? Here is my code snippet right now that returns empty.

private bool ProcessFolder(FolderInfo folder)

{

string m_currentFolderEntryId = (folder.EntryId == null) ? string.Empty : ASCIIEncoding.UTF32.GetString(folder.EntryId);

Thanks,

Karen Schmidt

Hi Karen,


In PST file, the entry id of folders, messages and other items is stored in binary format (byte array). So, the FolderInfo.EntryID just returns this byte array. For details on entry id on MSDN, please refer to http://msdn.microsoft.com/en-us/library/cc842499.aspx.

Since the msdn site explained that it is hexadecimal, then i used this to get entryId as a string:

string currentFolderEntryId = (folder.EntryId == null) ? string.Empty : Convert.ToBase64String(folder.EntryId);

Thanks,

Karen Schmidt

The issues you have found earlier (filed as 20291) have been fixed in [this update ](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry262044.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.