Share via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.Item(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