Share via


SPScriptSafeCollection.CopyTo method

Copies all of the values into the specified array at the specified index.

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

Syntax

'Declaration
Public Sub CopyTo ( _
    array As String(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As SPScriptSafeCollection
Dim array As String()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
public void CopyTo(
    string[] array,
    int arrayIndex
)

Parameters

  • array
    Type: []

    The array in which the values are copied.

  • arrayIndex
    Type: System.Int32

    The index of the collection in which the values are copied.

See also

Reference

SPScriptSafeCollection class

SPScriptSafeCollection members

Microsoft.SharePoint namespace