SPEventReceiverDefinitionCollection.HostType property

Gets the type of object to which the event receiver definitions apply.

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

Syntax

'Declaration
Public ReadOnly Property HostType As SPEventHostType
    Get
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim value As SPEventHostType

value = instance.HostType
public SPEventHostType HostType { get; }

Property value

Type: Microsoft.SharePoint.SPEventHostType
A SPEventHostType value that specifies the type of object that is the event host for this event receiver.

Remarks

The event host is an object, like an SPSite object or an SPWorkflow object, that processes events that are generated by user actions.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace

SPEventReceiverType