Share via


SPEventReceiverDefinitionCollection.Site property

Gets the site collection to which the event receiver definitions apply.

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

Syntax

'Declaration
Public ReadOnly Property Site As SPSite
    Get
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim value As SPSite

value = instance.Site
public SPSite Site { get; }

Property value

Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the site collection.

Remarks

Event handlers are registered at the site or site collection level to respond to events. When users perform actions such as delete, update, check in, or convert on Microsoft SharePoint Foundation objects, the object generates an event. This event that specified that an action occurred must be received by the appropriate event host within the SharePoint Foundation farm for processing.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace

ParentHostId