我想通过使用C#的EWS托管API填充的日期时间/发件人/主题电子邮件进行排序。我正在填写下面的电子邮件 -
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
var itemView = new ItemView(pageSize, offset, OffsetBasePoint.Beginning);
FindItemsResults<Item> fiitems = null;
fiitems = service.FindItems(new FolderId(WellKnownFolderName.Inbox, userMailbox), itemView);
service.LoadPropertiesForItems(fiitems.Items, PropertySet.FirstClassProperties);
任何帮助将不胜感激。
答案 0 :(得分:2)
ItemView view = new ItemView(10, 0, OffsetBasePoint.Beginning);
view.OrderBy.Add(EmailMessageSchema.Subject, SortDirection.Ascending);