SPEventHostType Simple Type (DeploymentManifest)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies the object type for event hosts.

Definition

<xs:simpleType name="SPEventHostType" >
   <xs:restriction base="xs:string">
      <xs:enumeration value="Site" />
      <xs:enumeration value="Web" />
      <xs:enumeration value="List" />
      <xs:enumeration value="ListItem" />
      <xs:enumeration value="ContentType" />
      <xs:enumeration value="Feature" />
   </xs:restriction>
</xs:simpleType>

Enumeration values

Value Description
Site
SharePoint Site object (SPSite).
Web
SharePoint Web object (SPWeb).
List
SharePoint List object (SPList).
ListItem
SharePoint ListItem object (SPListItem).
ContentType
SharePoint ContentType object (SPContentType).
Feature
SharePoint Feature object (SPFeature).

See also