SPEventReceiverDefinition.ParentHostType property

Gets or sets the object type of the parent object of the object that is hosting the event.

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

Syntax

'Declaration
Public Property ParentHostType As SPEventHostType
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As SPEventHostType

value = instance.ParentHostType

instance.ParentHostType = value
public SPEventHostType ParentHostType { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventHostType
An SPEventHostType value that indicates the object type.

Remarks

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

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPWorkflowManager

Other resources

Event Host Type