Share via


ChangeFeedProcessorBuilder.WithMaxItems(Int32) Method

Definition

Sets the maximum number of items to be returned in the enumeration operation in the Azure Cosmos DB service.

public Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithMaxItems (int maxItemCount);
member this.WithMaxItems : int -> Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder
Public Function WithMaxItems (maxItemCount As Integer) As ChangeFeedProcessorBuilder

Parameters

maxItemCount
Int32

Maximum amount of items to be returned in a Change Feed request.

Returns

An instance of ChangeFeedProcessorBuilder.

Remarks

This is just a hint to the server which can return less or more items per page. If operations in the container are performed through stored procedures or transactional batch, transaction scope is preserved when reading items from the Change Feed. As a result, the number of items received could be higher than the specified value so that the items changed by the same transaction are returned as part of one atomic batch.

Applies to