SPWorkItemCollection.GetWorkItemCount method
Returns the number of work items of the specified work item type from the specified content database without fetching any actual work items.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetWorkItemCount ( _
contentDb As SPContentDatabase, _
workItemTypeId As Guid _
) As Integer
'Usage
Dim contentDb As SPContentDatabase
Dim workItemTypeId As Guid
Dim returnValue As Integer
returnValue = SPWorkItemCollection.GetWorkItemCount(contentDb, _
workItemTypeId)
public static int GetWorkItemCount(
SPContentDatabase contentDb,
Guid workItemTypeId
)
Parameters
contentDb
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe content database of interest.
workItemTypeId
Type: System.GuidThe ID of the work item type of interest.
Return value
Type: System.Int32
The number of work items of the specified work item type.