共用方式為


SPWorkItemCollection.SubCollection method

傳回從個別網站的SPWorkItemCollection執行個體 (做為子集合),同時逐一查看所有的站台從站台特定的子集合組成完整的工作項目集合。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function SubCollection ( _
    site As SPSite, _
    web As SPWeb, _
    offset As UInteger, _
    maxIndex As UInteger _
) As SPWorkItemCollection
'用途
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
)

參數

  • offset
    Type: System.UInt32

    索引子所開始的站台集合陣列中指定的起始點。

  • maxIndex
    Type: System.UInt32

    指定超過陣列結尾的網站集合構成的子集合的一個整數的索引。

傳回值

Type: Microsoft.SharePoint.SPWorkItemCollection
傳回SPWorkItemCollection物件執行個體,做為子集合。

請參閱

參照

SPWorkItemCollection class

SPWorkItemCollection members

Microsoft.SharePoint namespace

Microsoft.SharePoint.SPSite