简体   繁体   中英

How to change AppointmentStatus in managed Exchange Web Services

I need to change appointment status to meeting, so that it invitations can be send by one click. But Appointment.AppointmentStatus and Appointment.IsMeeeting are read only properties. I've found, using reflector, that PropertyBag class is used for setting and getting items properties, but it's also internal. Can I change this properties somehow?

I manage to do it. Steps are not so simple and logical, but here they are:

var extendedProperty = new ExtendedPropertyDefinition(new Guid("00062002-0000-0000-C000-000000000046"), 0x8217, MapiPropertyType.Integer);
meeting.SetExtendedProperty(extendedProperty, 1);

where Guid is PropertySet of appointments, and that strange number is MeetingStatus property id. And that's all. "Send" button is active by default.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM