SPEventReceiverDefinitionCollection.CopyTo method

Copies the contents of the collection to the given array starting at the specified index.

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

Syntax

'Declaration
Public Sub CopyTo ( _
    array As SPEventReceiverDefinition(), _
    index As Integer _
)
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim array As SPEventReceiverDefinition()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    SPEventReceiverDefinition[] array,
    int index
)

Parameters

  • index
    Type: System.Int32

    The point within the array at which to begin the insertion of the collection.

Exceptions

Exception Condition
ArgumentNullException

Array is a null reference (Nothing in Visual Basic).

IndexOutOfRangeException

Index is not valid.

Remarks

The array into which the items are copied must have zero-based indexing.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace

EventReceivers

EventReceivers