如何使用Microsoft Exchange Web Services从同一域中的其他联系人检索会议



我想从Outlook 2010中检索日历项目。目前,我只能按照本教程从我自己的日历中检索项目。但是我想从我同事的日程表上得到会议。到目前为止,我已经尝试了很多选择,但没有任何工作。你能告诉我如何使用这些api从同一个交换服务器获取所有日历会议吗?提前感谢!

嗯,2天内没有答复。与此同时,我找到了一种方法来访问别人的日历。我想分享我的解决方案,以便其他人可以得到帮助:-

             ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
             service.Credentials = new WebCredentials();
             Mailbox principle = new Mailbox("usedr@domain.com");
             CalendarFolder calendar2 = CalendarFolder.Bind(service, new FolderId(WellKnownFolderName.Calendar, principle), new PropertySet());
             // Retrieve a collection of appointments by using the calendar view.
             FindItemsResults<Appointment> appointments2 = calendar2.FindAppointments(cView2);
约会2应该有所有的日历会议。

最新更新