1
我們從outlook創建會議,並將會議設置爲私人會議。但是,當使用Exchange服務器API(EWS託管API)時,我們無法檢索該信息,會議始終設置爲「正常」,而不是「私人」。 Exchange Server中是否存在阻止閱讀會議敏感屬性的設置?或者是否有API的要求來獲得該設置? 下面是示例代碼:使用EWS API獲取會議敏感數據
DateTime startDate = DateTime.Now.AddDays(-1);
DateTime endDate = DateTime.Now.AddDays(1);
const int NUM_APPTS = 15;
// Initialize the calendar folder object with only the folder ID.
FolderId CalendarFolderIdVal = new FolderId(WellKnownFolderName.Calendar, "[email protected]");
CalendarFolder calendar = CalendarFolder.Bind(service, CalendarFolderIdVal, new PropertySet());
// Set the start and end time and number of appointments to retrieve.
CalendarView cView = new CalendarView(startDate, endDate, NUM_APPTS);
// Limit the properties returned to the appointment's subject, start time, and end time.
cView.PropertySet = new PropertySet(AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End,AppointmentSchema.Sensitivity);
// Retrieve a collection of appointments by using the calendar view.
FindItemsResults<Appointment> appointments = calendar.FindAppointments(cView);
通過任命循環時
,甚至會在Outlook中私人的,它總是讀爲「正常」。
是的,「RemovePrivateProperty」設置解決了這個問題。謝謝!狹谷 –