在用C#写一个会议室预定系统
在预定的同时会使用outlook发送给与会者一个会议邮件
在写一次性会议时用C#调用Outlook api 发起会议
现在的问题是在发送周期性会议时该调用什么方法?
使用的outlook2010(ctrl+G)重复周期功能
------解决思路----------------------
下面是创建一个周期性appointment的代码
private void RecurringAppointmentEveryMondayWednesdayFriday()
{
Outlook.AppointmentItem appt = Application.CreateItem(
Outlook.OlItemType.olAppointmentItem)
as Outlook.AppointmentItem;
appt.Subject = "Recurring Appointment DaysOfWeekMask Example";
Outlook.RecurrencePattern pattern = appt.GetRecurrencePattern();
pattern.RecurrenceType = Outlook.OlRecurrenceType.olRecursWeekly;
// Logical OR for DayOfWeekMask creates pattern
pattern.DayOfWeekMask = Outlook.OlDaysOfWeek.olMonday
------解决思路----------------------
Outlook.OlDaysOfWeek.olWednesday
------解决思路----------------------
Outlook.OlDaysOfWeek.olFriday;
pattern.PatternStartDate = DateTime.Parse("7/10/2006");
pattern.PatternEndDate = DateTime.Parse("8/25/2006");
pattern.Duration = 60;
pattern.StartTime = DateTime.Parse("2:00:00 PM");
pattern.EndTime = DateTime.Parse("3:00:00 PM");
appt.Save();
appt.Display(false);
}
来自:
https://msdn.microsoft.com/EN-US/library/office/ff184595.aspx