ContentIterator.ProcessSites method

Processes an SPSiteCollection object.

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

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.

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.

Show: