【发布时间】:2016-05-27 10:07:34
【问题描述】:
我可以使用 EWS 管理 api 使用过滤器搜索 收件箱 中的项目,如下所示。
static void SearchByUsingFastSearch(ExchangeService service)
{
// Return the first 10 items in this call.
ItemView view = new ItemView(10);
// Find all items where the body contains "move reports".
string qstring = "Body:\"move reports\"";
// Identify the item properties to return.
view.PropertySet = new PropertySet(BasePropertySet.IdOnly,
ItemSchema.Subject);
// Send the request and get the results.
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, qstring, view);
}
同样,有没有办法在 Clutter 文件夹中查找项目?类似于
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Clutter, qstring, view);
【问题讨论】:
标签: c# office365 ews-managed-api