就我现在而言,我知道如何从交换服务器获取约会,但是只要我想查看必需的和可选的与会者,这些字段都是空的……我检查了约会三次,有一个与会者,除了我。我是否必须以不同的方式配置 Outlook 或者我错过了什么?
List<Appointment> listOfAppointments = new List<Appointment>();
CalendarFolder cfolder = CalendarFolder.Bind(MyService, WellKnownFolderName.Calendar);
CalendarView cview = new CalendarView(from.ToUniversalTime(), to.ToUniversalTime());
cview.PropertySet = new PropertySet(ItemSchema.Subject);
cview.PropertySet.Add(AppointmentSchema.Start);
cview.PropertySet.Add(AppointmentSchema.End);
cview.PropertySet.Add(AppointmentSchema.Location);
cview.PropertySet.Add(AppointmentSchema.ICalUid);
cview.PropertySet.Add(AppointmentSchema.Organizer);
cview.PropertySet.Add(AppointmentSchema.IsAllDayEvent);
cview.PropertySet.Add(AppointmentSchema.DateTimeCreated);
FindItemsResults<Appointment> result = cfolder.FindAppointments(cview);
这就是我获取约会的方式,正如我从异常和跟踪和错误中得出的那样,我不需要要求交换与会者......但也许我错过了一些东西。