更新商品类别时出现EWS错误 [英] EWS error when updating an item Category
问题描述
在使用EWS(登录到Exchange 2007 SP1)的VB .Net应用程序中的项目上调用Update()方法时,出现以下错误:
I get the following error when calling the Update() method on an Item in my VB .Net application using EWS (logged on to Exchange 2007 SP1):
属性更新失败
可能是什么原因?
我真的希望这不是由于EWS要求Exchange 2010更新项目类别.我对该商品所做的唯一更新就是添加了一个类别.
I'm really hoping this is not due to EWS requiring Exchange 2010 to update categories on an item. The only update I made to the item was to Add a category.
此外,以下代码可以复制邮件并更新其类别,可以正常工作.因此,看起来这只是现有消息的更改类别属性.
Also, the following code, which makes a copy of the message and updates its category works fine. So it looks like it's only changing the category property for existing messages that's the problem.
Dim itmMessage2 = itmMessage.Copy(itmMessage.ParentFolderId)
itmMessage2.Categories.Add(strCategoryName)
itmMessage2.Update(ConflictResolutionMode.AlwaysOverwrite)
干杯, 戴夫
推荐答案
尝试使用包含逗号的字符串更新类别时,我遇到了类似的属性更新未成功"的问题.
I've faced a similar "Property update did not succeed" problem when tried to update the Category with a string containing a comma.
删除逗号字符解决了我的问题.
Removing comma character solved my problem.
这篇关于更新商品类别时出现EWS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!