连续创建修改后的事件
Create modified occurence in series
我想将修改后的事件添加到现有系列中。我得到以下信息:
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 的构造函数是内部的。
如果您要修改重复系列中的特定事件,请查看 this EWS Managed API documentation。
我想将修改后的事件添加到现有系列中。我得到以下信息:
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 的构造函数是内部的。
如果您要修改重复系列中的特定事件,请查看 this EWS Managed API documentation。