Table of Contents

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

eventId CalendarEventId

The event to amend.

title string

What it is called afterwards, as supplied.

start DateTimeOffset

When it begins afterwards.

end DateTimeOffset?

When it ends afterwards, or null to hold no end.

isAllDay bool

Whether it is stated as a day rather than as a clock time afterwards.

reminders IReadOnlyCollection<int>

The leads it is announced at afterwards, as stated in minutes before it, or empty to announce nothing.

cancellationToken CancellationToken

Propagates 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.