Partilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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