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

Syntax

'Declaration
Public Property ParentHostId As Guid
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.ParentHostId

instance.ParentHostId = value
public Guid ParentHostId { get; set; }

Property Value

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

Remarks

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.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

ParentWeb

ParentId

HostId