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

  • fIterateInReverseOrder
    Type: System.Boolean
    If 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.

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.

See Also

Reference

ContentIterator Class

ContentIterator Members

ProcessFiles Overload

Microsoft.Office.Server.Utilities Namespace