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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
eventReceiverId As Guid _
) As SPEventReceiverDefinition
Get
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim eventReceiverId As Guid
Dim value As SPEventReceiverDefinition
value = instance.Item(eventReceiverId)
public SPEventReceiverDefinition this[
Guid eventReceiverId
] { get; }
Parameters
eventReceiverId
Type: System.GuidA 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