Share via


SPWorkItemCollection.SubCollection Method

Returns an SPWorkItemCollection instance (as a subcollection) from individual sites while iterating over all sites to assemble the full work item collection from the site-specific subcollections.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function SubCollection ( _
    site As SPSite, _
    web As SPWeb, _
    offset As UInteger, _
    maxIndex As UInteger _
) As SPWorkItemCollection
'Usage
Dim instance As SPWorkItemCollection
Dim site As SPSite
Dim web As SPWeb
Dim offset As UInteger
Dim maxIndex As UInteger
Dim returnValue As SPWorkItemCollection

returnValue = instance.SubCollection(site, _
    web, offset, maxIndex)
public SPWorkItemCollection SubCollection(
    SPSite site,
    SPWeb web,
    uint offset,
    uint maxIndex
)

Parameters

  • offset
    Type: System.UInt32

    Specifies the starting point in index of the site collection array at which the subcollection starts.

  • maxIndex
    Type: System.UInt32

    Specifies the index that is one integer beyond the end of the site collection array that constitutes the subcollection.

Return Value

Type: Microsoft.SharePoint.SPWorkItemCollection
Returns an SPWorkItemCollection object instance that acts as a subcollection.

See Also

Reference

SPWorkItemCollection Class

SPWorkItemCollection Members

Microsoft.SharePoint Namespace

Microsoft.SharePoint.SPSite