我想在现有系列中添加修改后的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的构造函数是内部的。