Compartilhar via


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)
Available in Sandboxed Solutions: No

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