Monday, June 16, 2014

How do you handle Large List in SharePoint 2010 Using ContentIterator

When you read items from custom list beyond threshold, you will get an error.

In order to avoid exception, we can use various methods of ContentIterator. It is available in the following namespace.

using Microsoft.Office.Server.Utilities

Methods:

ContentIterator.MaxItemsPerQuery
ContentIterator.ItemEnumerationOrderByID
ContentIterator.ItemEnumerationOrderByPath
ContentIterator.ItemEnumerationOrderByNVPField.

No comments:

Post a Comment