当需要打开约会实例时,我需要获取会议系列的主约会。如何向Outlook预约系列主单次发生
我曾尝试以下(currentAppointment变量的类型AppointmentItem的)
DateTime sd = currentAppointment.GetRecurrencePattern().PatternStartDate;
DateTime st = currentAppointment.GetRecurrencePattern().StartTime;
AppointmentItem ai = currentAppointment.GetRecurrencePattern().GetOccurrence(sd+st.TimeOfDay);
不过,虽然这让我在该系列中的第一次约会,它有olApptOccurrence的RecurrenceState。
?我怎样才能到olApptMaster参考 - 即会议系列?
太棒了!谢谢。 MSFT文档对于父母的内容不太清楚 - 只是它是一个对象。非常感激。 – Marcin
只要确保您检查RecurrenceState属性 - 对于常规(RecurrenceState ==(OlRecurrenceState.olApptNotRecurring)),Parent属性将返回eeh父级MAPIFolder。 –
谢谢德米特里。你碰巧知道如何使该父对象可编辑?我问过的问题在这里:http://stackoverflow.com/questions/14788295/how-to-modify-the-appointmentitem-parent-object – Marcin