Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
ProcessWorkItem For each workitem, get the tasks that need to be completed and call AlterTodo on them.
Namespace:  Microsoft.Office.Workflow
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Protected Overrides Function ProcessWorkItem ( _
    db As SPContentDatabase, _
    workItems As SPWorkItemCollection, _
    workItem As SPWorkItem, _
    jobState As SPJobState _
) As Boolean
'Usage
Dim db As SPContentDatabase
Dim workItems As SPWorkItemCollection
Dim workItem As SPWorkItem
Dim jobState As SPJobState
Dim returnValue As Boolean
returnValue = Me.ProcessWorkItem(db, _
    workItems, workItem, jobState)
protected override bool ProcessWorkItem(
    SPContentDatabase db,
    SPWorkItemCollection workItems,
    SPWorkItem workItem,
    SPJobState jobState
)
Parameters
db
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe content database which contains the work items.
workItems
Type: Microsoft.SharePoint.SPWorkItemCollectionThe collection which contains the work items.
- workItem
Type: Microsoft.SharePoint.SPWorkItem 
jobState
Type: Microsoft.SharePoint.Administration.SPJobStateThe state of the pausable timer job
Return Value
Type: System.Boolean
True if the job should continue processing workitems