Share via


SPAllSitesJobDefinition.Execute method (SPContentDatabase, SPJobState)

Iterates through all sites, and calls ProcessSite(SPSite, SPJobState) for each site.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Sub Execute ( _
    contentDatabase As SPContentDatabase, _
    jobState As SPJobState _
)
'Usage
Dim instance As SPAllSitesJobDefinition
Dim contentDatabase As SPContentDatabase
Dim jobState As SPJobState

instance.Execute(contentDatabase, jobState)
public override void Execute(
    SPContentDatabase contentDatabase,
    SPJobState jobState
)

Parameters

Exceptions

Exception Condition
ArgumentException

The contentDatabase or jobState parameter is a null reference (Nothing in Visual Basic).

See also

Reference

SPAllSitesJobDefinition class

SPAllSitesJobDefinition members

Execute overload

Microsoft.SharePoint.Administration namespace