none
EWS 2010_SP2 and AllDayEvent RRS feed

  • Question

  • Hi,

    I created a Event Handler in C#, and it's works good in Exchange2007_SP1,

    but my client use Exchange2010_SP2 and not working the AllDayEvent = true.

    I don't no who is the problem in this version.

    My code:

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2, TimeZoneInfo.Local);
    
    appointmentItem.Subject = nev;
    appointmentItem.Start = Convert.ToDateTime(item["Start"]);
    appointmentItem.End = Convert.ToDateTime(item["End"]);
    appointmentItem.IsAllDayEvent = true;
    
    appointmentItem.Save(SendInvitationsMode.SendOnlyToAll);

    Please help!

    Thanks,

    Niki

    Tuesday, September 24, 2013 2:13 PM

Answers

  • For Exchange, an allday event requires :

    • starting at midnight
    • duration must be a multiple of 1440 minutes (24 hours x 60 minutes)

    In your case, start must be set to 2013.09.26 00:00 and end 2013.09.27 00:00.

    Regards,

     

    Désiré GOVIN, Refresh IT Solutions.com

    • Marked as answer by Mykie89 Wednesday, September 25, 2013 1:43 PM
    Tuesday, September 24, 2013 5:52 PM

All replies