Compartilhar via


ContentIterator.ProcessItems Method (SPListItemCollection, Boolean, 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, _
    fIterateInReverseOrder As Boolean, _
    itemProcessor As ContentIterator.ItemProcessor, _
    errorCallout As ContentIterator.ItemProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim items As SPListItemCollection
Dim fIncludeFolderItems As Boolean
Dim fIterateInReverseOrder As Boolean
Dim itemProcessor As ContentIterator.ItemProcessor
Dim errorCallout As ContentIterator.ItemProcessorErrorCallout

instance.ProcessItems(items, fIncludeFolderItems, _
    fIterateInReverseOrder, itemProcessor, _
    errorCallout)
public void ProcessItems(
    SPListItemCollection items,
    bool fIncludeFolderItems,
    bool fIterateInReverseOrder,
    ContentIterator.ItemProcessor itemProcessor,
    ContentIterator.ItemProcessorErrorCallout errorCallout
)

Parameters

  • fIncludeFolderItems
    Type: System.Boolean
    If true, list items that are folders that will be returned; if false, items that are folders are filtered out.
  • 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.

See Also

Reference

ContentIterator Class

ContentIterator Members

ProcessItems Overload

Microsoft.Office.Server.Utilities Namespace