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
- sites
Type: Microsoft.SharePoint.Administration.SPSiteCollection
An enumeration of sites to process.
- siteProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.SiteProcessor
The callout to process the sites.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.SiteProcessorErrorCallout
The optional callout to handle errors.
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.