简体   繁体   English

使用EWS托管API移动一批EmailMessages

[英]Moving batch of EmailMessages using EWS Managed API

Is it possible to move list of EmailMessage through one request to Exchange Web Service? 是否可以通过一个请求将EmailMessage列表移动到Exchange Web服务? The only way how to move one message is EmailMessage.Move method: 移动一条消息的唯一方法是EmailMessage.Move方法:

Item item = beforeMessage.Move(WellKnownFolderName.JunkEmail)

Is there any possibility for a batch of items? 一批物品有可能吗?

Use the MoveItems method eg ExchangeService.MoveItems https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.webservices.data.exchangeservice.moveitems(v=exchg.80).aspx which will batch the request. 使用MoveItems方法,例如ExchangeService.MoveItems https://msdn.microsoft.com/zh-cn/library/office/microsoft.exchange.webservices.data.exchangeservice.moveitems(v=exchg.80).aspx ,它将批量处理请求。 I would be careful around optimising your batch sizes to avoid throttling issues. 我会在优化批量大小时小心谨慎,以避免出现节流问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM