How to save attached Appointment from ItemAttachment object in Exchange EWS ? RRS feed

  • Question

  • I`m able to do this with EmailMessage

    Item message = Item.Bind(_service, new ItemId(item.Id.UniqueId.ToString()), new PropertySet(BasePropertySet.FirstClassProperties, ItemSchema.Attachments));
               foreach (Attachment attachment in message.Attachments)
                    var attItem = attachment as ItemAttachment;
                    attItem.Load(new PropertySet(ItemSchema.Attachments));
                    mimeContent = attItem.Item.MimeContent;

    But I`m wondering how I can do this with Appointment ?

    Thank you for help!

    Friday, June 7, 2019 7:46 PM

All replies

  • You can't do that for an Appointment or Contact (the store won't generate a Mime Stream for those types when they are an ItemAttachment) , my suggestion is you take the appointment properties and then create an VCalendar stream yourself.


    Monday, June 10, 2019 12:01 AM