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
)
參數
site
Type: Microsoft.SharePoint.SPSiteSPSite執行個體,其工作項目會組合成子集合。
web
Type: Microsoft.SharePoint.SPWebSPWeb執行個體,其網站集合包含從哪些工作項目組合成子網站。
offset
Type: System.UInt32索引子所開始的站台集合陣列中指定的起始點。
maxIndex
Type: System.UInt32指定超過陣列結尾的網站集合構成的子集合的一個整數的索引。
傳回值
Type: Microsoft.SharePoint.SPWorkItemCollection
傳回SPWorkItemCollection物件執行個體,做為子集合。