CancelMeetingWithMessageText method
Cancels the meeting and sends cancellation messages to all attendees. Calling this method results in a call to EWS.
Cancellation message text sent to all attendees.
Implementation
Future<CalendarActionResults> CancelMeetingWithMessageText(
String cancellationMessageText,
) {
CancelMeetingMessage cancelMsg = CreateCancelMeetingMessage();
// C# relies on the implicit string -> MessageBody (HTML) conversion.
cancelMsg.Body = MessageBody.withText(cancellationMessageText);
return cancelMsg.SendAndSaveCopy();
}