Exchange server 是否有一批';绑定&x27;对于EWS(日历视图)?

Exchange server 是否有一批';绑定&x27;对于EWS(日历视图)?,exchange-server,exchangewebservices,Exchange Server,Exchangewebservices,我需要使用Exchange Web服务检索一段时间内用户的日历项 我正在使用calendar.findappointsAPI和calendar视图 使用此api时,返回的项目没有填写所有属性(例如,正文,类别,以及与会者)。因此,我必须做以下工作: CalendarFolder calendar = (CalendarFolder)Folder.Bind(this.Service, WellKnownFolderName.Calendar); FindItemsResults<Appoin

我需要使用Exchange Web服务检索一段时间内用户的日历项

我正在使用
calendar.findappoints
API和
calendar视图

使用此api时,返回的项目没有填写所有属性(例如,
正文
类别
,以及
与会者
)。因此,我必须做以下工作:

CalendarFolder calendar = (CalendarFolder)Folder.Bind(this.Service, WellKnownFolderName.Calendar);
FindItemsResults<Appointment> findResults = calendar.FindAppointments(new CalendarView(startDate, endDate));

foreach (Appointment exAppt in findResults.Items)
{

  Appointment a = Appointment.Bind(this.Service, exAppt.Id);

  Models.Appointment appt = new Models.Appointment();
      appt.End = a.End;
      appt.Id = a.Id.ToString() ;
      ...
      appt.Notes = a.Body;
      ...
}
CalendarFolder calendar=(CalendarFolder)Folder.Bind(this.Service,WellKnownFolderName.calendar);
FindItemsResults findResults=calendar.findApoints(新的CalendarView(startDate,endDate));
foreach(findResults.Items中的约会示例应用程序)
{
预约a=预约.Bind(this.Service,exAppt.Id);
Models.Appointment=新Models.Appointment();
appt.End=a.End;
appt.Id=a.Id.ToString();
...
附件注释=a.正文;
...
}
注意循环中的第二个
.Bind

这真的让查询变得很慢(已经很可怕了)

获取十几个日历条目需要几分钟

我已经看过了,但是我找不到任何可以让我批量检索“完整”项目的东西。我有没有找不到这样的东西

可能是我做错了什么,导致了这场演出?

我想出来了:

this.Service.LoadPropertiesForItems(findResults,newPropertySet(BasePropertySet.FirstClassProperties,ItemSchema.Id,ItemSchema.Body))


但我仍然希望在定义
日历视图时有一种指定
属性集的方法,因为它可以通过减少往返次数进一步提高性能。

事实上,2013年12月,您可以将属性集添加到FindApoints。即使您提出请求,也不会返回或未完全返回该正文、附件、组织者、必填项、资源和某些其他属性。