【发布时间】:2017-09-20 20:17:02
【问题描述】:
使用 EWS API,我可以使用时间范围和房间的邮箱地址找到约会,如下所示:
public static Appointment GetAppointmentByMailboxAndTimeFrame(ExchangeService EWS,DateTime startDate, DateTime endDate , string mailbox)
{
Appointment apt=null;
try
{
// Set the start and end time appointments to retrieve.
CalendarView cView = new CalendarView(startDate, endDate);
FolderId CalendarFolderId = new FolderId(WellKnownFolderName.Calendar, mailbox);
EWS.ImpersonatedUserId = null;
// Retrieve an appointments by using the calendar view.
FindItemsResults<Appointment> appointments = EWS.FindAppointments(CalendarFolderId, cView);
apt= appointments.First();
}
catch (Exception)
{
apt = null;
}
return apt;
}
我想知道有没有办法使用组织者的电子邮件地址和时间范围为组织者预约?这样做的目的是只有组织者能够更新约会,而不是与会者(房间也是与会者)
【问题讨论】:
标签: exchange-server exchangewebservices organizer