EventReceivers 元素 (DeploymentManifest - SPFile)

适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

表示Windows SharePoint Services 3.0 事件接收器对象容器或集合 (SPEventReceiverDefinitionCollection) ,用于在 SharePoint 文件 (SPFile) 对象上实现事件处理。

定义

DECLARATION
<xs:element name="EventReceivers"
        type="SPEventReceiverDefinitionCollection"
        minOccurs="0" maxOccurs="1"
/>
USAGE
<File>
        <EventReceivers>
                <EventReceiver />
        </EventReceivers>
</File>

类型

SPEventReceiverDefinitionCollection

元素和属性

下面各部分介绍了属性、子元素和父元素。

Attributes

子元素

EventReceiver 元素 (DeploymentManifest)

父元素

File 元素 (DeploymentManifest - SPGenericObject)

备注

此元素是四个 EventReceivers 元素之一;每个派生自不同的元素层次结构,如下所示:

另请参阅