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
contentDatabase
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe content database from which to get the sites.
jobState
Type: Microsoft.SharePoint.Administration.SPJobStateThe job's current state.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The contentDatabase or jobState parameter is a null reference (Nothing in Visual Basic). |