3
就我而言,我知道如何從交換服務器獲取約會,但只要我想查看必需和可選參加者,這些字段都是空的。 ..我檢查了預約trice,除了我之外,還有一個與會者。我是否必須以不同的方式配置Outlook,或者我錯過了什麼?EWS託管:獲取預約所需的和可選的與會者
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);
這就是我如何獲取約會,因爲我是從異常和試錯算了,我也不需要問換取與會者...但也許我失去了一些東西。
會嘗試,謝謝 – markus
工作出色,不知道,你可以加載這樣的屬性:-) – markus