Compartilhar via


ContentIterator.ProcessSites Method

Processes an SPSiteCollection object.

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Sub ProcessSites ( _
    sites As SPSiteCollection, _
    siteProcessor As ContentIterator.SiteProcessor, _
    errorCallout As ContentIterator.SiteProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim sites As SPSiteCollection
Dim siteProcessor As ContentIterator.SiteProcessor
Dim errorCallout As ContentIterator.SiteProcessorErrorCallout

instance.ProcessSites(sites, siteProcessor, _
    errorCallout)
public void ProcessSites(
    SPSiteCollection sites,
    ContentIterator.SiteProcessor siteProcessor,
    ContentIterator.SiteProcessorErrorCallout errorCallout
)

Parameters

Remarks

This method simply iterates over each SPSite in the collection and calls the siteProcessor parameter for each one, calling the optional errorCallout parameter if an exception is thrown.

See Also

Reference

ContentIterator Class

ContentIterator Members

Microsoft.Office.Server.Utilities Namespace