Method DeleteAsync
- Namespace
- MailFathom.Application.Calendar
- Assembly
- MailFathom.Application.dll
DeleteAsync(CalendarEventId, CancellationToken)
Takes one event off the signed-in person's calendar for good.
public Task<bool> DeleteAsync(CalendarEventId eventId, CancellationToken cancellationToken)
Parameters
eventIdCalendarEventIdThe event to delete.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
Dismissing a proposal is this operation and not one of its own: a date nobody wanted is not a fact worth keeping, so what a person dismisses and what they delete leave the calendar the same way.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no person, or its grant omits CalendarWrite.