SPEventReceiverDefinitionCollection.Item property (Int32)

Gets the SPEventReceiverDefinition object at the specified index in the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPEventReceiverDefinition
    Get
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim index As Integer
Dim value As SPEventReceiverDefinition

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinition
An EventReceiverDefinition object that represents the event receiver definition.

Remarks

In some SharePoint Foundation implementations, it is more expedient to manipulate members of a collection by their identifiers rather than by their place within the collection.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Item overload

Microsoft.SharePoint namespace

Item[Guid]

SPItemEventReceiver