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.SPListItemCollectionA collection of items to process.
fIncludeFolderItems
Type: System.BooleanIf 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.ItemProcessorThe callout to process the list items returned by the query.
errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.ItemProcessorErrorCalloutThe optional callout to handle errors.