[英]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. 但是
Appointment.AppointmentStatus
和Appointment.IsMeeeting
是只读属性。 I've found, using reflector, that PropertyBag
class is used for setting and getting items properties, but it's also internal. 使用反射器,我发现
PropertyBag
类用于设置和获取项属性,但它也是内部的。 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. 其中Guid是约会的PropertySet,而那个奇怪的数字是MeetingStatus属性ID。 And that's all.
就这样。 "Send" button is active by default.
默认情况下,“发送”按钮处于活动状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.