Condividi tramite


SPUserCustomActionCollection.CopyTo Method

Copies the elements of the collection to an array, starting at the specified index. This method is an alternative implementation of ICollection.CopyTo(Array, Int32) that returns the collection as a strongly typed array.

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 SPUserCustomAction(), _
    index As Integer _
)
'Usage
Dim instance As SPUserCustomActionCollection
Dim array As SPUserCustomAction()
Dim index As Integer

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

Parameters

  • array
    Type: []

    The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.

  • index
    Type: System.Int32

    The zero-based index in the array at which copying begins.

See Also

Reference

SPUserCustomActionCollection Class

SPUserCustomActionCollection Members

Microsoft.SharePoint Namespace