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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)]
public void CopyTo(
SPEventReceiverDefinition[] array,
int index
)
Parameters
array
Type: []Array of SPEventReceiverDefinition objects.
index
Type: System.Int32The 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