Compartilhar via


ContentIterator.ExecuteSitesProcessingDirect Method

Iterates over every site collection in the farm.

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

Syntax

'Declaration
Public Sub ExecuteSitesProcessingDirect ( _
    sitesProcessor As ContentIterator.SitesProcessor _
)
'Usage
Dim instance As ContentIterator
Dim sitesProcessor As ContentIterator.SitesProcessor

instance.ExecuteSitesProcessingDirect(sitesProcessor)
public void ExecuteSitesProcessingDirect(
    ContentIterator.SitesProcessor sitesProcessor
)

Parameters

Remarks

Use of this function should be avoided because it points to a feature that is uninterruptible and can consume lots of server resources. Instead of calling this method, consider writing a timer job derived from the SPAllSitesJobDefinition class and registering the timer job on each web application. This way each job can be scheduled accordingly and paused/resumed if required to allow them to run only during certain windows of time.

See Also

Reference

ContentIterator Class

ContentIterator Members

Microsoft.Office.Server.Utilities Namespace