SPAttachmentCollection.ICollection.CopyTo Method

Copies the elements of the attachment collection to a one-dimensional array, starting at the specified index.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableIncludeAsNotImplementedAttribute> _
Private Sub CopyTo ( _
    array As Array, _
    index As Integer _
) Implements ICollection.CopyTo
'Usage
Dim instance As SPAttachmentCollection
Dim array As Array
Dim index As Integer

CType(instance, ICollection).CopyTo(array, _
    index)
[SubsetCallableIncludeAsNotImplementedAttribute]
void ICollection.CopyTo(
    Array array,
    int index
)

Parameters

  • array
    Type: System.Array

    The array to which to copy the attachment collection.

  • index
    Type: System.Int32

    The index at which copying begins.

Implements

ICollection.CopyTo(Array, Int32)

Remarks

This member is an explicit interface member implementation. It can be used only when the SPAttachmentCollection instance is cast to an ICollection interface.

See Also

Reference

SPAttachmentCollection Class

SPAttachmentCollection Members

Microsoft.SharePoint Namespace