Condividi tramite


SPUserSolutionCollection.CopyTo Method

Copies the elements of the SPUserSolutionCollection to a sandboxed solution array starting at a specified 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 SPUserSolution(), _
    index As Integer _
)
'Usage
Dim instance As SPUserSolutionCollection
Dim array As SPUserSolution()
Dim index As Integer

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

Parameters

  • array
    Type: []

    The destination array of the elements copied from the SPUserSolutionCollection.

  • index
    Type: System.Int32

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

Exceptions

Exception Condition
ArgumentNullException

array is null .

Remarks

This method copies the elements of the current SPUserSolutionCollection to the specified sandboxed solution array starting at the specified index of the target array.

See Also

Reference

SPUserSolutionCollection Class

SPUserSolutionCollection Members

Microsoft.SharePoint Namespace