SPEventReceiverDefinition.HostId Property
Gets or sets the identifier of the object that is hosting the event.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
A hosting object has Event Registrations objects associated with it so the event senders are aware of where the events will be processed.