SPWorkItemJobDefinition.ProcessWorkItems 方法 (SPContentDatabase, SPWorkItemCollection, SPJobState)

启动处理的工作项,并指定内容数据库,包含的工作项,以及 pausable 计时器作业的当前状态的工作项集合。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Overridable Function ProcessWorkItems ( _
    contentDatabase As SPContentDatabase, _
    workItems As SPWorkItemCollection, _
    jobState As SPJobState _
) As Boolean
用法
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
)

参数

返回值

类型:System.Boolean
如果计时器作业应继续处理该工作项,则返回Booleantrue 。

另请参阅

引用

SPWorkItemJobDefinition 类

SPWorkItemJobDefinition 成员

ProcessWorkItems 重载

Microsoft.SharePoint.Administration 命名空间