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
Post a Comment