EWS:在SentItems

时间:2015-12-14 10:54:22

标签: exchangewebservices

使用SearchFilterCollection有没有办法按地址搜索 SentItems文件夹? 我只能通过使用" DisplayTo "来获得结果,这可以很好地添加收件人的名字。 我知道有更多选项(AQS),但我必须使用这种搜索,因为我需要包含 ExtentedProperty 。 谢谢。

1 个答案:

答案 0 :(得分:0)

你可以做一些similar to this,用你正在讨论的扩展属性扩展它:

ItemView view = new ItemView(100);
view.PropertySet = new PropertySet(BasePropertySet.Default);

SearchFilter searchFilter = 
  new SearchFilter.ContainsSubstring(ItemSchema.Sender, "example@domain.com");

FindItemsResults<Item> findResults = 
  service.FindItems(WellKnownFolderName.SentItems, filter, view);
相关问题