PHP获取exchange会议,使用 Exchange 中的 EWS 获取约会和会议

本文展示了如何使用Exchange Web Services(EWS)托管API和EWS操作从Exchange的日历文件夹中检索约会和会议。通过设置开始和结束时间以及要获取的事件数量,可以获取介于指定日期范围内的事件详情。
摘要由CSDN通过智能技术生成

使用 Exchange 中的 EWS 获取约会和会议Get appointments and meetings by using EWS in Exchange

09/17/2015

本文内容

了解如何使用 Exchange 中的 EWS 托管 API 或 EWS 获取约会和会议。Learn how to get appointments and meetings by using the EWS Managed API or EWS in Exchange.

您可以使用CalendarFolder EWS 托管 API 方法或FindItem ews 操作从 "日历" 文件夹中检索约会和会议。You can retrieve appointments and meetings from a calendar folder by using the CalendarFolder.FindAppointments EWS Managed API method or the FindItem EWS operation.

使用 EWS 托管 API 获取约会Get appointments by using the EWS Managed API

下面的代码示例演示如何使用 EWS 托管 API 检索介于指定开始时间和结束时间之间的用户约会。The following code example shows how to use the EWS Managed API to retrieve a user's appointments that fall between a specified start and end time.

// Initialize values for the start and end times, and the number of appointments to retrieve.

DateTime startDate = DateTime.Now;

DateTime endDate = startDate.AddDays(30);

const int NUM_APPTS = 5;

// Initialize the calendar folder object with only the folder ID.

CalendarFolder calendar = CalendarFolder.Bind(service, WellKnownFolderName.Calendar, 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值