SetReadStateForItemsInConversationWithSuppressReadReceipts method

Future<void> SetReadStateForItemsInConversationWithSuppressReadReceipts(
  1. FolderId? contextFolderId,
  2. bool isRead,
  3. bool suppressReadReceipts
)
Sets the read state of items in the specified conversation. Calling this method results in a call to EWS. The Id of the folder items must belong to in order for their read state to be set. If contextFolderId is null, the read states of items across the entire mailbox are set. if set to , conversation items are marked as read; otherwise they are marked as unread. if set to read receipts are suppressed.

Implementation

Future<void> SetReadStateForItemsInConversationWithSuppressReadReceipts(
  FolderId? contextFolderId,
  bool isRead,
  bool suppressReadReceipts,
) async {
  // ExchangeService.SetReadStateForItemsInConversations (with suppressReadReceipts)
  EwsUtilities.ValidateMethodVersion(
    Service,
    ExchangeVersion.Exchange2013,
    "SetReadStateForItemsInConversations",
  );
  (await _ApplyConversationOneTimeAction(
    ConversationActionType.SetReadState,
    [MapEntry(Id!, GlobalLastDeliveryTime)],
    contextFolderId,
    null,
    null,
    isRead,
    null,
    null,
    null,
    suppressReadReceipts,
    ServiceErrorHandling.ReturnErrors,
  ))[0].ThrowIfNecessary();
}