How to get the millisecond part of the DateTimeRecieved field of emailmessage using EWS managed APIs
问题 I have a code which synchronizes with exchange and gets the emailmessage objects for the given itemids: List<EmailMessage> emails = new List<EmailMessage>(); ServiceResponseCollection<GetItemResponse> response = MyExchangeService.BindToItems(MyItemIds, PropertySet); foreach (GetItemResponse getItemResponse in response) { if (getItemResponse.Item != null) { emails.Add((EmailMessage)getItemResponse.Item); } } Now, the emailmessage object that I get as a result, contains the DateTimeReceived