Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

How Can I Search Items With EmailMessageSchema.From

$
0
0

I want to search inbox with the From field.So I build the constrains with the code below:

        var fromConstrains = new SearchFilter.ContainsSubstring();
        fromConstrains.PropertyDefinition = EmailMessageSchema.Sender;
        
        fromConstrains.Value = model.From;
        andType.Add(fromConstrains);

Then I use the "andType" to search my Inbox,because the from is just like 李晓强<lixiaoqiang@hotmail.com> so,the users input "李晓强" as the query condition, I sure have some email from 李晓强,but it did not search out any one....

It just puzzled me...


十步杀一人,千里不留行

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>