SPEventReceiverDefinitionCollection.Item property (Guid)

Gets the event receiver definition with the specified identifier from the collection.

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

Syntax

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

value = instance(eventReceiverId)
public SPEventReceiverDefinition this[
    Guid eventReceiverId
] { get; }

Parameters

  • eventReceiverId
    Type: System.Guid

    A Guid that identifies the event receiver definition to retrieve from the collection.

Property value

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

Remarks

For information about the field types that are used in Windows SharePoint Services and how they relate to event handlers, see the SPListItem class.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Item overload

Microsoft.SharePoint namespace

Item[Int32]