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.SPSite
A site collection to process.
- fSetThreadCulture
Type: System.Boolean
Whether the thread’s culture settings should be set to match the web’s locale.
- webProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.WebProcessor
The callout to process each web.
- errorCallout
Type: Microsoft.Office.Server.Utilities.ContentIterator.WebProcessorErrorCallout
The 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.