SPAlternateUrlCollection.CopyTo method

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

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub CopyTo ( _
    array As SPAlternateUrl(), _
    count As Integer _
)
'Usage
Dim instance As SPAlternateUrlCollection
Dim array As SPAlternateUrl()
Dim count As Integer

instance.CopyTo(array, count)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void CopyTo(
    SPAlternateUrl[] array,
    int count
)

Parameters

  • array
    Type: []

    The array of SPAlternateUrl objects to which to copy the collection.

  • count
    Type: System.Int32

    A 32-bit integer specifying the array index at which to start copying the collection.

Implements

ICollection<T>.CopyTo([], Int32)

See also

Reference

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace