Method AmendAsync
- Namespace
- MailFathom.Application.Calendar
- Assembly
- MailFathom.Application.dll
AmendAsync(CalendarEventId, string?, DateTimeOffset, DateTimeOffset?, bool, IReadOnlyCollection<int>, CancellationToken)
Amends one event of the signed-in person's calendar to the record they state.
public Task<CalendarEventWriteResult> AmendAsync(CalendarEventId eventId, string? title, DateTimeOffset start, DateTimeOffset? end, bool isAllDay, IReadOnlyCollection<int> reminders, CancellationToken cancellationToken)
Parameters
eventIdCalendarEventIdThe event to amend.
titlestringWhat it is called afterwards, as supplied.
startDateTimeOffsetWhen it begins afterwards.
endDateTimeOffset?When it ends afterwards, or null to hold no end.
isAllDayboolWhether it is stated as a day rather than as a clock time afterwards.
remindersIReadOnlyCollection<int>The leads it is announced at afterwards, as stated in minutes before it, or empty to announce nothing.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<CalendarEventWriteResult>
The event as the calendar holds it, or why it was refused.
Remarks
The whole record rather than the difference from the one held, which is what keeps retitling an event, moving it, and dropping its end one operation. What it never changes is the identity, the origin, the message the event cites, and the identifier it was imported under — so this is not how a proposal is accepted.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no person, or its grant omits CalendarWrite.