UpdateItem method

Future<Item?> UpdateItem(
  1. Item item,
  2. FolderId? savedItemsDestinationFolderId,
  3. ConflictResolutionMode conflictResolution,
  4. MessageDisposition messageDisposition,
  5. SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode, [
  6. bool suppressReadReceipts = false,
])
Updates an item. The item to update. The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder. The conflict resolution mode. Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance. Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance. Updates an item. The item to update. The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder. The conflict resolution mode. Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance. Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance. Whether to suppress read receipts

Implementation

//        Future<Item> UpdateItem(
//            Item item,
//            FolderId savedItemsDestinationFolderId,
//            ConflictResolutionMode conflictResolution,
//            MessageDisposition messageDisposition,
//            SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
//        {
//            return this.UpdateItem(item, savedItemsDestinationFolderId, conflictResolution, messageDisposition, sendInvitationsOrCancellationsMode, false);
//        }

/// <summary>
/// Updates an item.
/// </summary>
/// <param name="item">The item to update.</param>
/// <param name="savedItemsDestinationFolderId">The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder.</param>
/// <param name="conflictResolution">The conflict resolution mode.</param>
/// <param name="messageDisposition">Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance.</param>
/// <param name="sendInvitationsOrCancellationsMode">Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance.</param>
/// <param name="suppressReadReceipts">Whether to suppress read receipts</param>
/// <returns>Updated item.</returns>
Future<Item?> UpdateItem(
    Item item,
    FolderId? savedItemsDestinationFolderId,
    ConflictResolutionMode conflictResolution,
    MessageDisposition messageDisposition,
    SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode,
    [bool suppressReadReceipts = false]) async {
  ServiceResponseCollection<UpdateItemResponse> responses = await this
      .InternalUpdateItems(
          [item],
          savedItemsDestinationFolderId,
          conflictResolution,
          messageDisposition,
          sendInvitationsOrCancellationsMode,
          ServiceErrorHandling.ThrowOnError,
          suppressReadReceipts);

  return responses[0].ReturnedItem;
}