SPFile.EventReceivers Property

Gets the collection of event receiver definitions for the file.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Public ReadOnly Property EventReceivers As SPEventReceiverDefinitionCollection
Dim instance As SPFile
Dim value As SPEventReceiverDefinitionCollection

value = instance.EventReceivers

Property Value

Type: Microsoft.SharePoint.SPEventReceiverDefinitionCollection
An SPEventReceiverDefinitionCollection object that represents the event receiver definitions.

For information on event receiver definitions, see Events in SharePoint Foundation 2010.