UpdateItem method
Future<Item?>
UpdateItem(
- Item item,
- FolderId? savedItemsDestinationFolderId,
- ConflictResolutionMode conflictResolution,
- MessageDisposition messageDisposition,
- SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode, [
- bool suppressReadReceipts = false,
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;
}