Howto: Example to retrieve the body property of a message using the Exchange Managed API.

 

        public string GetItemMime(ItemId oItemId)

        {

            string sReturn = string.Empty;

            PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);

            Item oItem = Item.Bind(_ExchangeService, oItemId, oMimePropertySet);

            return   oItem.MimeContent.ToString() ;

            

        }

 

        public string GetItemMime(Item oItem)

        {

            PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);

            oItem.Load(oMimePropertySet);

            return oItem.MimeContent.ToString();

 

        }