Error when I try to read/update the .Body of a Task via EWS Managed API - “You must load or assign this property before you can read its value.”

后端 未结 3 1151
无人及你
无人及你 2020-12-14 14:39

I am using the Exchange Web Services Managed API to work with Tasks (Exchange 2007 SP1). I can create them fine. However, when I try to do updates, it works for all of the

3条回答
  •  不知归路
    2020-12-14 15:16

    You can load properties using a custom property set. Some properties are Extended properties instead of FirstClassProperties.

    Little example:

            _customPropertySet = new PropertySet(BasePropertySet.FirstClassProperties, AppointmentSchema.MyResponseType, AppointmentSchema.IsMeeting, AppointmentSchema.ICalUid);
            _customPropertySet.RequestedBodyType = BodyType.Text;
            appointment.Load(_customPropertySet);
    

提交回复
热议问题