SPWorkItemJobDefinition.ProcessWorkItems 方法 (SPContentDatabase, SPWorkItemCollection)
请注意:此 API 现在已过时。
启动指定作业定义的工作项的处理,并指定内容数据库 (SPContentDatabase) 以及工作项的集合 (SPWorkItemCollection) 进行处理。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Override the ProcessWorkItems method with SPJobState support instead.", _
False)> _
Public Overridable Sub ProcessWorkItems ( _
db As SPContentDatabase, _
workItems As SPWorkItemCollection _
)
用法
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
)
参数
db
类型:Microsoft.SharePoint.Administration.SPContentDatabase指定要对其运行的计时器作业内容数据库对象 (SPContentDatabase) 的名称。
workItems
类型:Microsoft.SharePoint.SPWorkItemCollection指定包含可运行工作项的工作项集合 (SPWorkItemCollection)。
另请参阅
引用
Microsoft.SharePoint.Administration 命名空间