ContentIterator.ProcessListItems Method (SPList, String, Boolean, ContentIterator.ItemsProcessor, ContentIterator.ItemsProcessorErrorCallout)
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, _
strQuery As String, _
fRecursive As Boolean, _
itemsProcessor As ContentIterator.ItemsProcessor, _
errorCallout As ContentIterator.ItemsProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim list As SPList
Dim strQuery As String
Dim fRecursive As Boolean
Dim itemsProcessor As ContentIterator.ItemsProcessor
Dim errorCallout As ContentIterator.ItemsProcessorErrorCallout
instance.ProcessListItems(list, strQuery, _
fRecursive, itemsProcessor, errorCallout)
public void ProcessListItems(
SPList list,
string strQuery,
bool fRecursive,
ContentIterator.ItemsProcessor itemsProcessor,
ContentIterator.ItemsProcessorErrorCallout errorCallout
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
The list that contains the list items.
- strQuery
Type: System.String
Contains query information that is used to provide additional filtering of the items in the list.
- fRecursive
Type: System.Boolean
Indicates whether processing is recursive.
- itemsProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemsProcessor
Used to process individual items in the list.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemsProcessorErrorCallout
Used to handle and log errors while processing list items.