Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies one work item collection as an array into another work item collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub CopyTo ( _
array As SPWorkItem(), _
index As Integer _
)
'Usage
Dim instance As SPWorkItemCollection
Dim array As SPWorkItem()
Dim index As Integer
instance.CopyTo(array, index)
public void CopyTo(
SPWorkItem[] array,
int index
)
Parameters
array
Type: []Array of work items in the collection.
index
Type: System.Int32Integer specifying the position in the collection at which to start the array.
Remarks
The CopyTo method is useful in cases in which you create a shadow copy of a collection when assigning it to another variable.