共用方式為


SPEventReceiverDefinitionCollection.Item property (Int32)

取得集合中指定之索引處的SPEventReceiverDefinition物件。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPEventReceiverDefinition
    Get
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim index As Integer
Dim value As SPEventReceiverDefinition

value = instance(index)
public SPEventReceiverDefinition this[
    int index
] { get; }

參數

  • index
    Type: System.Int32

    指定的索引為 32 位元整數。

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinition
EventReceiverDefinition 物件,表示事件接收器定義。

備註

在某些SharePoint Foundation的實作,它是更有利操作集合的成員,根據其識別項而不是他們的位置,集合中項目。

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Item overload

Microsoft.SharePoint namespace

Item[Guid]

SPItemEventReceiver