Export (0) Print
Expand All

SPEventReceiverDefinition.HostId property

Gets or sets the identifier of the object that is hosting the event.

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

public Guid HostId { get; set; }

Property value

Type: System.Guid
A GUID that identifies the hosting object.

A hosting object has Event Registrations objects associated with it so the event senders are aware of where the events will be processed.

© 2014 Microsoft