检查消息ID数组或消息ID列表SearchFilter.SearchFilterCollection中是否存在值

时间:2018-06-08 10:20:45

标签: c# exchangewebservices searchfiltercollection

我想继续使用消息ID跟踪我的消息。 我想用消息ID数组过滤我的Outlook消息,我的Exchange服务器是Exchange2010。

是否有这样的代码;

  SearchFilter.SearchFilterCollection searchFilterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.Or);

    searchFilterCollection.Add(new SearchFilter.NotIn(EmailMessageSchema.InternetMessageId, new string {"1","2","3","4"}));

 searchFilterCollection.Add(new SearchFilter.NotIn(EmailMessageSchema.InternetMessageId, new List<string>{"1","2","3","4"}));

0 个答案:

没有答案