SPEventReceiverDefinition.SiteId property

Gets the ID of the site collection in which the event receiver is registered.

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

Syntax

'Declaration
Public ReadOnly Property SiteId As Guid
    Get
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.SiteId
public Guid SiteId { get; }

Property value

Type: System.Guid
A GUID that represents the ID of the site collection.

Remarks

Users perform actions such as delete, update, check in, or convert on Microsoft SharePoint Foundation objects. When a SharePoint Foundation object has some action performed on it by the user, the object generates an event. The event that specified that an action occurred must be received by an event host that is specified by the site that is associated with this property.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace