ContentIterator.ProcessFiles method (SPListItemCollection, Boolean, ContentIterator.FileProcessor, ContentIterator.FileProcessorErrorCallout)
This member is reserved for internal use and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub ProcessFiles ( _
items As SPListItemCollection, _
fIterateInReverseOrder As Boolean, _
fileProcessor As ContentIterator.FileProcessor, _
errorCallout As ContentIterator.FileProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim items As SPListItemCollection
Dim fIterateInReverseOrder As Boolean
Dim fileProcessor As ContentIterator.FileProcessor
Dim errorCallout As ContentIterator.FileProcessorErrorCallout
instance.ProcessFiles(items, fIterateInReverseOrder, _
fileProcessor, errorCallout)
public void ProcessFiles(
SPListItemCollection items,
bool fIterateInReverseOrder,
ContentIterator.FileProcessor fileProcessor,
ContentIterator.FileProcessorErrorCallout errorCallout
)
Parameters
items
Type: Microsoft.SharePoint.SPListItemCollectionA list of items which are files to process.
fIterateInReverseOrder
Type: System.BooleanIf true, the iteration is done from the last element in the collection to the first. Otherwise, the iteration is done from the first element to the last.
fileProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.FileProcessorThe callout to process the files.
errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.FileProcessorErrorCalloutThe optional callout to handle errors.
Remarks
The fileProcessor cannot delete the item, or you will miss items in the iteration. Instead, you must save the file.Item.ID of each item that must be deleted and then after the iteration is complete, delete them by deleting items by ID from the parent list.