ContentIterator.ProcessListItems Method (SPList, String, UInt32, Boolean, SPFolder, 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, _
rowLimit As UInteger, _
fRecursive As Boolean, _
folder As SPFolder, _
itemsProcessor As ContentIterator.ItemsProcessor, _
errorCallout As ContentIterator.ItemsProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim list As SPList
Dim strQuery As String
Dim rowLimit As UInteger
Dim fRecursive As Boolean
Dim folder As SPFolder
Dim itemsProcessor As ContentIterator.ItemsProcessor
Dim errorCallout As ContentIterator.ItemsProcessorErrorCallout
instance.ProcessListItems(list, strQuery, _
rowLimit, fRecursive, folder, itemsProcessor, _
errorCallout)
public void ProcessListItems(
SPList list,
string strQuery,
uint rowLimit,
bool fRecursive,
SPFolder folder,
ContentIterator.ItemsProcessor itemsProcessor,
ContentIterator.ItemsProcessorErrorCallout errorCallout
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
The list that contains the list items.
- strQuery
Type: System.String
A string that contains query information that is used to provide additional filtering of the items in the list.
- rowLimit
Type: System.UInt32
Indicates the maximum number of records to process.
- fRecursive
Type: System.Boolean
Indicates whether processing is recursive.
- folder
Type: Microsoft.SharePoint.SPFolder
A folder in a list that contains the list items to process.
- 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.