我正在为每个现有约会设置一个自定义扩展属性,如下所示:
var extendedPropertyDefinition = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "RateTheMeetingId24", MapiPropertyType.Integer);
var propertySet = new PropertySet(PropertySet.FirstClassProperties) { extendedPropertyDefinition };
appointment.Load(propertySet);
appointment.SetExtendedProperty(extendedPropertyDefinition, meetingId);
而不是我更新约会:
appointment.Update(ConflictResolutionMode.AlwaysOverwrite);
它工作得很好,但很慢,因为 Update() 会创建一个调用来交换每个约会。我想在一个电话中更新会议。我可以使用设置的自定义属性列出我的约会,而不是我想使用类似的东西:
UpdateAppointment(List<Appointment> appointmentsWithExtendedPropertySetted)
{
appointmentsWithExtendedPropertySetted.UpdateAll();
}
我在 MSDN 中找到了有关 UpdateItems 方法的参考: ExchangeService.UpdateItems 方法
但我不知道如何使用它。