共用方式為


SPEventReceiverDefinitionCollection.CopyTo method

將集合的內容複製到指定的陣列指定索引處開始。

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

Syntax

'宣告
Public Sub CopyTo ( _
    array As SPEventReceiverDefinition(), _
    index As Integer _
)
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim array As SPEventReceiverDefinition()
Dim index As Integer

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

參數

  • index
    Type: System.Int32

    要開始插入集合的陣列中的點。

Exceptions

Exception Condition
ArgumentNullException

陣列是a null reference (Nothing in Visual Basic)。

IndexOutOfRangeException

索引是無效的。

備註

項目複製到其中的陣列必須有以零起始的索引。

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace

EventReceivers

EventReceivers