EWS托管API:移动,id不到达以检索移动项目。 [英] EWS Managed API : move, id don't arrive to retrieve the move item.

查看:77
本文介绍了EWS托管API:移动,id不到达以检索移动项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将日历从一个文件夹移动到另一个文件夹时,我不会带着他的itemId和bind
<来回复这个项目pre> ----保存项目------------


FolderId folderId = new
FolderId(WellKnownFolderName.Calendar," bob@bob.com"
);

appointment.Save(folderId,SendInvitationsMode.SendToNone);
$
ExchangeID = appointment.Id;


------------- -------------------------------------------------- ------------
$

---移动项目------------------


预约= Appointment.Bind(service,ExchangeID);

FolderId folderId = new
FolderId(WellKnownFolderName.Calendar," alfred@alfred.com"
);
$
Item item = appointment.Move( folderId);
$

----------------------------------- ----------- ------------------
$

这个
之后,item
null

and appointment.Id haven'改变了。


如果


预约=约会。绑定(服务,ExchangeID);


我有

Microsoft.Exchange.WebServices.Data .ServiceRemoteException:ErrorItemNotFound


in
outlook日历移动
bob到alfred。

解决方案

支持返回已移动/复制的项目已在Exchange 2007 SP2中添加。升级到SP2,您的Move调用将不再返回null,但有三个限制:



  • 邮箱移动或复制邮箱
  • 邮箱到公用文件夹移动或复制
  • 公用文件夹移动或复制邮箱

在这些情况下,移动和复制仍将返回null。 / p>


When I move a calendar from a folder to an other, I don't arrive to retrive this item with his itemId with bind

----Save item------------
FolderId folderId = new FolderId(WellKnownFolderName.Calendar, "bob@bob.com" );
appointment.Save(folderId, SendInvitationsMode.SendToNone);
ExchangeID = appointment.Id;
---------------------------------------------------------------------------
---Move item------------------
appointment = Appointment.Bind(service, ExchangeID);
FolderId folderId = new FolderId(WellKnownFolderName.Calendar, "alfred@alfred.com" );
Item item = appointment.Move(folderId);
----------------------------------------------------------------
After this , item is null and appointment.Id haven't changed.
But if I do appointment = Appointment.Bind(service, ExchangeID);
I have
Microsoft.Exchange.WebServices.Data.ServiceRemoteException : ErrorItemNotFound
but in outlook the calendar move from bob to alfred.

解决方案

Support for returning the moved/copied item was added in Exchange 2007 SP2. Upgrade to SP2 and your Move call won't return null anymore, although there are three restrictions:

  • Mailbox to mailbox move or copy
  • Mailbox to Public Folder move or copy
  • Public Folder to mailbox move or copy

In these cases, Move and Copy will still return null.


这篇关于EWS托管API:移动,id不到达以检索移动项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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