Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string userIdentity = "username@domain.com";
- FolderId fId = new FolderId(WellKnownFolderName.Inbox, userIdentity);
- var inbox = Folder.Bind(_ews, fId);
- var query = "[Test!!!]";
- SearchFilter sf = new SearchFilter.ContainsSubstring(ItemSchema.Body, query, ContainmentMode.Substring, ComparisonMode.IgnoreCase);
- FindItemsResults<Item> items = inbox.FindItems(sf, new ItemView(100));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement