Share via


SPLinkCollection.CopyTo Method

Copies the collection to an array of SPLink objects starting at the specified index in the array.

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer specifying the zero-based index in the array at which to begin copying the links.

See Also

Reference

SPLinkCollection Class

SPLinkCollection Members

Microsoft.SharePoint Namespace