This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ