ContentIterator.ProcessSite method (SPSite, Boolean, ContentIterator.WebProcessor, ContentIterator.WebProcessorErrorCallout)
Processes all SPSite objects within the site collection.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub ProcessSite ( _
site As SPSite, _
fSetThreadCulture As Boolean, _
webProcessor As ContentIterator.WebProcessor, _
errorCallout As ContentIterator.WebProcessorErrorCallout _
)
'Usage
Dim instance As ContentIterator
Dim site As SPSite
Dim fSetThreadCulture As Boolean
Dim webProcessor As ContentIterator.WebProcessor
Dim errorCallout As ContentIterator.WebProcessorErrorCallout
instance.ProcessSite(site, fSetThreadCulture, _
webProcessor, errorCallout)
public void ProcessSite(
SPSite site,
bool fSetThreadCulture,
ContentIterator.WebProcessor webProcessor,
ContentIterator.WebProcessorErrorCallout errorCallout
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA site collection to process.
fSetThreadCulture
Type: System.BooleanWhether the thread’s culture settings should be set to match the web’s locale.
webProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.WebProcessorThe callout to process each web.
errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.WebProcessorErrorCalloutThe optional callout to handle errors.
Remarks
If the fSetThreadCulture parameter is true, then before each call to webProcessor, Thread.CurrentThread.CurrentCulture is set to SPWeb.Locale and Thread.CurrentThread.CurrentUICulture is set to SPWeb.UICulture.