SPWorkItemJobDefinition.ProcessWorkItems method (SPContentDatabase, SPWorkItemCollection, SPJobState)
SharePoint 2013
Launches the processing of work items and specifies the content database, the work item collection that contains the work items, and the current state of the pausable timer jobs.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
protected virtual bool ProcessWorkItems( SPContentDatabase contentDatabase, SPWorkItemCollection workItems, SPJobState jobState )
Parameters
- contentDatabase
- Type: Microsoft.SharePoint.Administration.SPContentDatabase
The SPContentDatabase instance that contains the work item.
- workItems
- Type: Microsoft.SharePoint.SPWorkItemCollection
The work item collection (SPWorkItemCollection instance) that contains the work item to process.
- jobState
- Type: Microsoft.SharePoint.Administration.SPJobState
The current state of the pausable timer job as represented by the SPJobState instance.
Return value
Type: System.BooleanReturns Booleantrue if the timer job should continue processing the work item.