ContentIterator.ProcessFilesInFolder Method (SPList, SPFolder, Boolean, ContentIterator.FileProcessor, ContentIterator.FileProcessorErrorCallout)
Iterates over items in a folder.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub ProcessFilesInFolder ( _
list As SPList, _
folder As SPFolder, _
fRecursive As Boolean, _
fileProcessor As ContentIterator.FileProcessor, _
errorCallout As ContentIterator.FileProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim list As SPList
Dim folder As SPFolder
Dim fRecursive As Boolean
Dim fileProcessor As ContentIterator.FileProcessor
Dim errorCallout As ContentIterator.FileProcessorErrorCallout
instance.ProcessFilesInFolder(list, folder, _
fRecursive, fileProcessor, errorCallout)
public void ProcessFilesInFolder(
SPList list,
SPFolder folder,
bool fRecursive,
ContentIterator.FileProcessor fileProcessor,
ContentIterator.FileProcessorErrorCallout errorCallout
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
The SPList object to iterate over.
- folder
Type: Microsoft.SharePoint.SPFolder
The SPFolder object to iterate over.
- fRecursive
Type: System.Boolean
If true, iterate over all items in all subfolders.
- fileProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.FileProcessor
The callout to process each file.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.FileProcessorErrorCallout
The optional callout to handle errors.