ExchangeService.SetReadStateForItemsInConversations method (IEnumerable<KeyValuePair<ConversationId, Nullable<DateTime>>>, FolderId, Boolean)

Sets the read state of items in a conversation.

The SetReadStateForItemsInConversations(IEnumerable<KeyValuePair<ConversationId, Nullable<DateTime>>>, FolderId, Boolean) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public ServiceResponseCollection<ServiceResponse> SetReadStateForItemsInConversations(
	IEnumerable<KeyValuePair<ConversationId, Nullable<DateTime>>> idLastSyncTimePairs,
	FolderId contextFolderId,
	bool isRead
)

Parameters

idLastSyncTimePairs
Type: System.Collections.Generic.IEnumerable<KeyValuePair<ConversationId, Nullable<DateTime>>>

A collection of conversation IDs and an associated time stamp used to determine which conversations need to be updated.

contextFolderId
Type: Microsoft.Exchange.WebServices.Data.FolderId

The folder ID of the folder that contains the specified conversation.

isRead
Type: System.Boolean

true if the conversation items are marked as read; otherwise, false.

Calling this method results in a call to Exchange Web Services (EWS).

Show: