无法从Exchange Web服务检索资源(会议室)

我很难过。 我正在使用Exchange Web服务从我公司的本地日历和其他日历中检索日历信息,但“.Resources”始终为空。 我们使用Resources来存储会议室信息。 有趣的是,即使“.RequiredAttendees”也是空的,但我可以毫无问题地从“.DisplayTo”和“.DisplayCc”中检索值。 有什么建议? 我在下方附上了一个应付片段以供参考。

CalendarView calendarView = new CalendarView(startDate, endDate); Mailbox mailbox = new Mailbox(mailboxSMTP); FolderId calendarFolder = new FolderId(WellKnownFolderName.Calendar, mailbox); FindItemsResults findResults = service.FindAppointments(calendarFolder, calendarView); foreach (Appointment appointment in findResults.Items) {// foreach 1 ... 

谢谢,格雷格

默认情况下,EWS可能不会请求Resources属性,但您应该能够在调用FindAppointments之前通过将其添加到PropertySet来专门请求它。

 calendarView.PropertySet.Add(AppointmentSchema.Resources);