SPWorkItemCollection.CopyTo method

Copies one work item collection as an array into another work item collection.

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

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.Int32

    Integer 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.

See also

Reference

SPWorkItemCollection class

SPWorkItemCollection members

Microsoft.SharePoint namespace