.netvstooutlook-addinoutlook-2007outlook-object-model

VSTO Outlook 2007 unique message ID


I am creating an Outlook 2007 add-in using VSTO. I need to store information (entered by the user) about each email. My first thought is to create a small "database" that references each email as necessary. But I can't seem to find an accessible identifier for each email for this purpose. Is there an ID or some other unique field that is available for each mail message item that I can use?

C# or VB.NET code is fine. Hopefully this can be some easy points for you!

Thanks in Advance!


Solution

  • The mail item has a number of properties, including EntryID Property. You can also add custom properties.