SPWorkItemJobDefinition.ProcessWorkItems Method (SPContentDatabase, SPWorkItemCollection)
NOTE: This API is now obsolete.
Launches the processing of work items as specified by the job definition and specifies the content database (SPContentDatabase) and work-item collection (SPWorkItemCollection) for processing.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Override the ProcessWorkItems method with SPJobState support instead.", _
False)> _
Public Overridable Sub ProcessWorkItems ( _
db As SPContentDatabase, _
workItems As SPWorkItemCollection _
)
'Usage
Dim instance As SPWorkItemJobDefinition
Dim db As SPContentDatabase
Dim workItems As SPWorkItemCollection
instance.ProcessWorkItems(db, workItems)
[ObsoleteAttribute("Override the ProcessWorkItems method with SPJobState support instead.",
false)]
public virtual void ProcessWorkItems(
SPContentDatabase db,
SPWorkItemCollection workItems
)
Parameters
db
Type: Microsoft.SharePoint.Administration.SPContentDatabaseSpecifies the name of the content database object (SPContentDatabase) against which to run the timer job.
workItems
Type: Microsoft.SharePoint.SPWorkItemCollectionSpecifies the work-item collection (SPWorkItemCollection) that contains the runnable work items.
See Also
Reference
SPWorkItemJobDefinition Members
Microsoft.SharePoint.Administration Namespace