SPWorkItemJobDefinition.ProcessWorkItems method (SPContentDatabase, SPWorkItemCollection, SPJobState)

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.

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

Syntax

'Declaration
Protected Overridable Function ProcessWorkItems ( _
    contentDatabase As SPContentDatabase, _
    workItems As SPWorkItemCollection, _
    jobState As SPJobState _
) As Boolean
'Usage
Dim contentDatabase As SPContentDatabase
Dim workItems As SPWorkItemCollection
Dim jobState As SPJobState
Dim returnValue As Boolean

returnValue = Me.ProcessWorkItems(contentDatabase, _
    workItems, jobState)
protected virtual bool ProcessWorkItems(
    SPContentDatabase contentDatabase,
    SPWorkItemCollection workItems,
    SPJobState jobState
)

Parameters

Return value

Type: System.Boolean
Returns Booleantrue if the timer job should continue processing the work item.

See also

Reference

SPWorkItemJobDefinition class

SPWorkItemJobDefinition members

ProcessWorkItems overload

Microsoft.SharePoint.Administration namespace