Condividi tramite


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

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