我可以重现您的失败,并且从堆栈跟踪中,它应该是服务问题。ODatalib 可以支持复杂类型的过滤器(可以查看http://services.odata.org/V4/OData/OData.svc/PersonDetails ?$filter=Address/City eq 'Boise'),但交换服务不支持。
"stacktrace": " at Microsoft.Exchange.Services.OData.Model.ODataFilterConverter.GetEntityProperty(QueryNode queryNode)\r\n at Microsoft.Exchange.Services.OData.Model.EwsFilterConverter.ConvertFilterNode(QueryNode queryNode)\r\n at Microsoft.Exchange.Services.OData.Model.EwsQueryAdapter.GetRestriction()\r\n at Microsoft.Exchange.Services.OData.Model.MessageProvider.Find(String parentFolderId, MessageQueryAdapter queryAdapter)\r\n at Microsoft.Exchange.Services.OData.Model.FindMessagesCommand.InternalExecute()\r\n at Microsoft.Exchange.Services.OData.ODataCommand`2.Execute()\r\n at Microsoft.Exchange.Services.OData.ODataTask.Execute(TimeSpan queueAndDelayTime, TimeSpan totalTime)"