c# - ChangeCollection type into Appointment type EWS -
i doing syncing using exchange server web services(ews). sync need identify change items in calendar after last sync. this link lot. while using need take appointment start,end etc...
changecollection<itemchange> allexchevents = service.syncfolderitems(new folderid(wellknownfoldername.calendar), propertyset.firstclassproperties, null, 512, syncfolderitemsscope.normalitems, ssyncstate);
how convert change events appointment type ?
after looking @ msdn document , blogs found answer.
changecollection<itemchange> icc = service.syncfolderitems(new folderid(wellknownfoldername.calendar), propertyset.firstclassproperties, null, 512, syncfolderitemsscope.normalitems, ssyncstate); ssyncstate = icc.syncstate; if (icc.count == 0) { console.writeline("there no item changes synchronize."); } else { foreach (itemchange ic in icc) { **appointment ap = (appointment)ic.item;** } }
use "ap" object retrieve appointment inner properties.
Comments
Post a Comment