c# - MAPI Property to get Inbox Folder in Outlook 2007 -
I have this routine to get specific folders from Outlook folders: / / Property SentFolder string propertyName = "tag of http://schemas.microsoft.com/mapi/proptag/0x35E40102"; Outlook. Folder Folders = Store. Gatoroot folder () Folder; Object entry = propertyAccesor.GetProperty (propertyName); DefaultFolderEntryID = Property Accessor. Binrostostring (entry); If (! String.IsNullOrEmpty (defaultFolderEntryID)) {foreach (Outlook.Folder defaultFolder in folders) {if (defaultFolder.EntryID == defaultFolderEntryID) {folder = defaultFolder; break; } Marshal. Release com object (default folder); }} Marshal. Release com objects (folders); Marshal.ReleaseComObject (store); I have properties tags of all the folders but Inbox, nobody knows what is the property tag in the Inbox folder? Or any other way to get Inbox folder without using the word "Inbox" Currently, I use this routine to get the Inbox folder, but it depends on the Outlook language to work: Public Outl...