创建系列修改后的出现

时间:2015-06-22 08:29:21

标签: c# .net exchangewebservices

我想在现有系列中添加修改后的Occurence。我得到了以下内容:

Appointment appointment = Appointment.Bind(this.Service, masterId);
appointment.Load(APPOINTMENT);
bool found = false;
foreach (var occurrenceInfo in appointment.ModifiedOccurrences)
{
  if (occurrenceInfo.OriginalStart == myAppointment.SeriesDate)
  {
    appointment = Appointment.Bind(this.Service, occurrenceInfo.ItemId);
    appointment.Load(APPOINTMENT);
    found = true;
  }
}
if (!found)
  // Create OccureneInfo

我不知道我怎么能这样做,因为OccureneInfo的构造函数是内部的。

1 个答案:

答案 0 :(得分:0)

如果您要修改定期系列中的特定事件,请查看this EWS Managed API documentation