ContentIterator.ProcessFilesInFolder - Méthode (SPList, SPFolder, Boolean, ContentIterator.FileProcessor, ContentIterator.FileProcessorErrorCallout)
Parcourt les éléments d'un dossier.
Espace de noms : Microsoft.Office.Server.Utilities
Assembly : Microsoft.Office.Server (dans Microsoft.Office.Server.dll)
Syntaxe
'Déclaration
Public Sub ProcessFilesInFolder ( _
list As SPList, _
folder As SPFolder, _
fRecursive As Boolean, _
fileProcessor As ContentIterator.FileProcessor, _
errorCallout As ContentIterator.FileProcessorErrorCallout _
)
'Utilisation
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
)
Paramètres
list
Type : Microsoft.SharePoint.SPListL'objet SPList pour itérer.
folder
Type : Microsoft.SharePoint.SPFolderL'objet SPFolder pour itérer.
fRecursive
Type : System.BooleanSi true, itérer sur tous les éléments dans tous les sous-dossiers.
fileProcessor
Type : Microsoft.Office.Server.Utilities.ContentIterator.FileProcessorLa légende pour le traitement de chaque fichier.
errorCallout
Type : Microsoft.Office.Server.Utilities.ContentIterator.FileProcessorErrorCalloutLa légende facultative pour gérer les erreurs.