SPEventReceiverDefinitionCollection.HostId property
Gets the identifier of the object to which the event receiver definitions apply.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property HostId As Guid
Get
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim value As Guid
value = instance.HostId
public Guid HostId { get; }
Property value
Type: System.Guid
A Guid that identifies the site, web, or list object that is the event host.
Remarks
The event host id is stored in this collection so the SPEventReceiverDefinition has optimal access to the objects required for SharePoint Foundation site processing.
See also
Reference
SPEventReceiverDefinitionCollection class
SPEventReceiverDefinitionCollection members