Share via


SPWeb.EventReceivers Property

Gets the collection of event receiver definitions that are currently available on the website.

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

Syntax

'Declaration
Public ReadOnly Property EventReceivers As SPEventReceiverDefinitionCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPEventReceiverDefinitionCollection

value = instance.EventReceivers
public SPEventReceiverDefinitionCollection EventReceivers { get; }

Property Value

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

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace