Partilhar 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)
Available in Sandboxed Solutions: No

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