This topic has not yet been rated - Rate this topic

SPEventReceiverDefinition.ParentHostId Property

Gets or sets the ID of the parent object of the object that hosts the event.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public Guid ParentHostId { get; set; }

Property Value

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

Content types, features, lists and list items, sites, webs, and workflows can all have parent objects within the SharePoint Foundation site that provide other functionality to the event host because of their hierarchical position.

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