SPUserResourceCollection.CopyTo Method

Copies the elements of the collection to an array of SPUserResource objects, starting at the specified array index.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)> _
Public Sub CopyTo ( _
    array As SPUserResource(), _
    index As Integer _
)
'Usage
Dim instance As SPUserResourceCollection
Dim array As SPUserResource()
Dim index As Integer

instance.CopyTo(array, index)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)]
public void CopyTo(
    SPUserResource[] array,
    int index
)

Parameters

  • array
    Type: []

    The array to which to copy the collection.

  • index
    Type: System.Int32

    The array index at which to start copying the collection.

See Also

Reference

SPUserResourceCollection Class

SPUserResourceCollection Members

Microsoft.SharePoint Namespace