c# - How to delete a appoiment from device calendar in windows phone8.1 -


when trying delete event device calender through application showing error

error message:

an exception of type 'system.unauthorizedaccessexception' occurred in mscorlib.ni.dll not handled in user code  additional information: access denied. (exception hresult: 0x80070005 (e_accessdenied)) 

please @ below code iam using delete operation

 appointmentstore appointmentstore = await appointmentmanager.requeststoreasync(appointmentstoreaccesstype.appcalendarsreadwrite);          appointmentcalendar syscal = await appointmentstore.getappointmentcalendarasync(dcalendarid);           await syscal.deleteappointmentasync(dcalendareventid); 

anyone have idea please me.thank you

do have permissions use calendar? id_cap_appointments in application manifest file wmappmanifest.xml.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -