ContentIterator.ProcessListItems Method (SPList, SPQuery, Boolean, ContentIterator.ItemProcessor, ContentIterator.ItemProcessorErrorCallout)
Processes list items.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub ProcessListItems ( _
list As SPList, _
query As SPQuery, _
fIterateInReverseOrder As Boolean, _
itemProcessor As ContentIterator.ItemProcessor, _
errorCallout As ContentIterator.ItemProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim list As SPList
Dim query As SPQuery
Dim fIterateInReverseOrder As Boolean
Dim itemProcessor As ContentIterator.ItemProcessor
Dim errorCallout As ContentIterator.ItemProcessorErrorCallout
instance.ProcessListItems(list, query, _
fIterateInReverseOrder, itemProcessor, _
errorCallout)
public void ProcessListItems(
SPList list,
SPQuery query,
bool fIterateInReverseOrder,
ContentIterator.ItemProcessor itemProcessor,
ContentIterator.ItemProcessorErrorCallout errorCallout
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
The list that contains the list items.
- query
Type: Microsoft.SharePoint.SPQuery
Provides additional filtering of the items in the list.
- fIterateInReverseOrder
Type: System.Boolean
true processes the list items in reverse order, from last to first.
- itemProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemProcessor
Used to process individual items in the list.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemProcessorErrorCallout
Used to handle and log errors while processing list items.