locked
EWS Managed API, Why Item.DateTimeSent.Millisecond is always zero? RRS feed

  • Question

  • I am trying to calculate the time taken to send email message and time taken to receive email message. i am using EWS in my program , I set streaming notification to receive call back when a new mail reaches reciptent mailbox .

    once received notification i bind the Itemevent with ews service , i checked the item properties DateTimeCreated, DateTimeSent, DateTimeReceived.All these properties are of DateTime object.

    I checked DateTimeSent milisecond is always 0, whereas DateTimeCreated, DateTimeReceived has millisecond value.

    I couldnot figure out why DateTimeSent millisecond is always 0 everytime. if i want to claulate time taken from send to receive what should i do.

    DateTimeReceived - Datetimesent is the actual time taken to send and receive the message?

    or what is the correct way to calculate time taken to send and receive the message?

    https://stackoverflow.com/questions/53606184/ews-managed-api-why-item-datetimesent-millisecond-is-always-zero

    Thursday, December 6, 2018 11:38 AM

All replies

  • Hi Jayrag,

    I assumed that you have been setting a precision property correctly. Maybe you could refer to the following link:

    SearchFilter.IsGreaterThan returns same items for DateTimeReceived with Milliseconds DateTimePrecision

    Hope it helps you.

    Regards,

    Simon


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Friday, December 7, 2018 1:07 AM
  • Thank you for answer but its not work for my case i already set this but still cant find millisecond in DateTimeSent 
    Friday, December 7, 2018 11:59 AM