ContentIterator.ProcessItems Method (SPListItemCollection, Boolean, ContentIterator.ItemProcessor, ContentIterator.ItemProcessorErrorCallout)
Iterates over items in a folder.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub ProcessItems ( _
items As SPListItemCollection, _
fIncludeFolderItems As Boolean, _
itemProcessor As ContentIterator.ItemProcessor, _
errorCallout As ContentIterator.ItemProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim items As SPListItemCollection
Dim fIncludeFolderItems As Boolean
Dim itemProcessor As ContentIterator.ItemProcessor
Dim errorCallout As ContentIterator.ItemProcessorErrorCallout
instance.ProcessItems(items, fIncludeFolderItems, _
itemProcessor, errorCallout)
public void ProcessItems(
SPListItemCollection items,
bool fIncludeFolderItems,
ContentIterator.ItemProcessor itemProcessor,
ContentIterator.ItemProcessorErrorCallout errorCallout
)
Parameters
- items
Type: Microsoft.SharePoint.SPListItemCollection
A collection of items to process.
- fIncludeFolderItems
Type: System.Boolean
If true, list items that are folders that will be returned; if false, items that are folders are filtered out.
- itemProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemProcessor
The callout to process the list items returned by the query.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemProcessorErrorCallout
The optional callout to handle errors.