使用Exchange Web Services在网页上显示Exhange/Outlook会议室日历的最简单方法是什么? [英] What would be the simplest way to display an Exhange/Outlook meeting room's calendar on a webpage using Exchange Web Services?

查看:49
本文介绍了使用Exchange Web Services在网页上显示Exhange/Outlook会议室日历的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Exchange Web服务在网页上显示Exhange/Outlook会议室的日历的最简单方法是什么?

What would be the simplest way to display an Exhange/Outlook meeting room's calendar on a webpage using Exchange Web Services?

不必预订房间,取消会议等,只需在接下来的5天中在某个会议室中显示会议即可.

There's no need to be able to book rooms, cancel meetings etc., only to display the meetings in a certain meeting room for the next 5 days.

根据我的研究,我认为这些可能几乎是我需要使用的,但我不确定如何在网页中使用这些代码示例:

Based on my research I think these could be pretty much what I need to use, I'm just not sure how to use these code examples in a webpage:

http://msdn.microsoft.com/en-us/library/office/dn439786%28v = exchg.80%29.aspx

或者这个:

从Exchange有效地获取会议室约会

您的答案,指导将不胜感激!谢谢!

Your answers, guidance would be much appreciated! Thank you!

推荐答案

我建议在EWS托管API中使用 FindAppointments()方法.它旨在从适合特定日期范围的邮箱中的日历文件夹中检索约会,类似于Outlook一次显示一周的约会的方式.您需要确保使用有权访问会议室日历的帐户连接到Exchange服务.这是一个入门的小例子:

I would suggest using the FindAppointments() method in the EWS Managed API. It's designed to retrieve appointments from a calendar folder in a mailbox that fit within a certain date range, similar to the way Outlook displays a week of appointments at a time. You will need to make sure you are connected to the Exchange service with an account that has access to the meeting room's calendar. Here is a small example to get you started:

// Specify the date range to search and max items returned
CalendarView calView = new CalendarView(new DateTime(2014, 1, 10), new DateTime(2014, 1, 20), 10);

// Specify the properties to be returned
calView.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);

// Find the appointments
FindItemsResults<Appointment> results = service.FindAppointments(WellKnownFolderName.Calendar, calView);

现在您已经有了想要的日期范围的约会,您可以获取信息并将其绑定到您要显示的网页上,但是您可以根据自己的喜好进行选择.例如,您可以使用日历控件,并在日历上的特定日期内显示这些约会.我没有完整的工作示例,但本文应帮助您入门:

Now that you have the appointments for the date range you want, you can take the information and bind them to your web page to be displayed however you like. For example, you could use a calendar control and display these appointments within specific days on the calendar. I don't have a full working example of this, but this article should help get you started:

如何:在日历Web服务器控件

我希望这会有所帮助.如果确实可以解决您的问题,请将此帖子标记为已回答.

I hope this helps. If this does resolve your question, please mark this post as answered.

谢谢

---鲍勃---

这篇关于使用Exchange Web Services在网页上显示Exhange/Outlook会议室日历的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆