EWS 错误:“请求架构验证失败:所需属性‘FieldURI’”失踪了。”
我正在使用 EWS 绑定到 Exchange 邮箱中的特定邮件。一切都很顺利,直到我在我的请求中添加了扩展属性。如何设置此“FieldURI”属性? (所涉及的对象似乎都没有!)
Dim expCP = New ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, "My Custom Prop Name", MapiPropertyType.String)
prpPropsToLoadUpdateMessages.Add(ItemSchema.ExtendedProperties)
prpPropsToLoadUpdateMessages.Add(expCP)
Dim itmMessage As Item = Item.Bind(ews, New ItemId(strUniqueId), prpPropsToLoadUpdateMessages)
此片段的第四行抛出错误。我没有包含用于定义 prpPropsToLoadUpdateMessages
的代码,因为在 ItemSchema
中添加几乎每个属性大约需要 100 行。
TIA, 戴夫
I'm using EWS to bind to a specific message in my mailbox on Exchange. All was going fine until I added an extended property to my request. How do I set this 'FieldURI' property? (which none of the objects involved seem to have!)
Dim expCP = New ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, "My Custom Prop Name", MapiPropertyType.String)
prpPropsToLoadUpdateMessages.Add(ItemSchema.ExtendedProperties)
prpPropsToLoadUpdateMessages.Add(expCP)
Dim itmMessage As Item = Item.Bind(ews, New ItemId(strUniqueId), prpPropsToLoadUpdateMessages)
The 4th line of this snippet throws the error. I haven't included the code I used to define prpPropsToLoadUpdateMessages
because it's about 100 lines of adding almost every property in ItemSchema
.
TIA,
Dave
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 http:// 找到了解决方案Social.technet.microsoft.com/Forums/en/exchangesvrdevelopment/thread/207be791-0ae7-4fd1-b9a8-90e83249b9f8。
问题是我在使用
DefaultExtendedPropertySet.Common
时它应该是DefaultExtendedPropertySet.PublicStrings
I found the solution at http://social.technet.microsoft.com/Forums/en/exchangesvrdevelopment/thread/207be791-0ae7-4fd1-b9a8-90e83249b9f8.
The problem was I was using
DefaultExtendedPropertySet.Common
when it should have beenDefaultExtendedPropertySet.PublicStrings