交换 Web 服务限制路径
我进行了一些搜索,但无法找到与 FindItem
<IsEqualTo><FieldURI FieldURI="???"></IsEqualTo>that will not result in a ErrorUnsupportedPathForQuery error?
(使用EWS Exchange2010_SP1)
I have done a bit of searching and am unable to find a list of legal properties for use with the FindItem <Restriction> element, specificially what can I use in
<IsEqualTo><FieldURI FieldURI="???"></IsEqualTo>
that will not result in a ErrorUnsupportedPathForQuery error?
(Using EWS Exchange2010_SP1)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我编写了一个集成测试,它使用 exists 每个 UnindexedFieldURIType。抱歉,私人项目,无法发布代码。
这些字段有效:
值得注意的是,在产生错误的字段中,大多数会失败并显示 ERROR_UNSUPPORTED_PATH_FOR_QUERY,但其他字段会失败并显示ERROR_INVALID_PROPERTY_FOR_EXISTS。这表明某些字段适用于某些 SearchExpressionType,而其他字段则不适用于某些 SearchExpressionType。
I wrote an integration test which performs a FindItem using an exists filter for each of the UnindexedFieldURIType. Sorry private project, can't post code.
These fields work:
It's worth noting that of the fields that produce an error, most fail with an ERROR_UNSUPPORTED_PATH_FOR_QUERY, but others fail with a ERROR_INVALID_PROPERTY_FOR_EXISTS. That suggests that some fields work with some some SearchExpressionTypes while others don't.
请参阅 http://msdn.microsoft.com/en -us/library/aa494315(v=EXCHG.140).aspx。但如果您使用基于 .NET 的语言,则应该使用 EWS 托管 API,它使用起来要简单得多。
See http://msdn.microsoft.com/en-us/library/aa494315(v=EXCHG.140).aspx. But if you are using a .NET based language, you should use the EWS Managed API, which is much more simpler to use.