共用方式為


SPEventReceiverType Simple Type (DeploymentManifest)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Specifies the available event receivers.


<xs:simpleType name="SPEventReceiverType" >
        <xs:restriction base="xs:string">
            <xs:enumeration value="ItemAdding" />
            <xs:enumeration value="ItemUpdating" />
            <xs:enumeration value="ItemDeleting" />
            <xs:enumeration value="ItemCheckingIn" />
            <xs:enumeration value="ItemCheckingOut" />
            <xs:enumeration value="ItemUncheckingOut" />
            <xs:enumeration value="ItemAttachmentAdding" />
            <xs:enumeration value="ItemAttachmentDeleting" />
            <xs:enumeration value="ItemFileMoving" />
            <xs:enumeration value="FieldAdding" />
            <xs:enumeration value="FieldUpdating" />
            <xs:enumeration value="FieldDeleting" />
            <xs:enumeration value="SiteDeleting" />
            <xs:enumeration value="WebDeleting" />
            <xs:enumeration value="WebMoving" />
            <xs:enumeration value="ItemAdded" />
            <xs:enumeration value="ItemUpdated" />
            <xs:enumeration value="ItemDeleted" />
            <xs:enumeration value="ItemCheckedIn" />
            <xs:enumeration value="ItemCheckedOut" />
            <xs:enumeration value="ItemUncheckedOut" />
            <xs:enumeration value="ItemAttachmentAdded" />
            <xs:enumeration value="ItemAttachmentDeleted" />
            <xs:enumeration value="ItemFileMoved" />
            <xs:enumeration value="ItemFileTransformed" />
            <xs:enumeration value="FieldAdded" />
            <xs:enumeration value="FieldUpdated" />
            <xs:enumeration value="FieldDeleted" />
            <xs:enumeration value="SiteDeleted" />
            <xs:enumeration value="WebDeleted" />
            <xs:enumeration value="WebMoved" />
            <xs:enumeration value="EmailReceived" />
            <xs:enumeration value="ContextEvent" />
            <xs:enumeration value="InvalidReceiver" />
        </xs:restriction>
    </xs:simpleType>

Enumeration Values

Value

Description

ContextEvent

Indicates a list received a context event.

EmailReceived

Indicates a list received an email message.

FieldAdded

Indicates a field was added.

FieldAdding

Indicates a field is being added.

FieldDeleted

Indicates a field was removed.

FieldDeleting

Indicates a field is being removed.

FieldUpdated

Indicates a field was updated.

FieldUpdating

Indicates a field is being updated.

InvalidReceiver

Indicates the event receiver is not valid.

ItemAdded

Indicates an item was added.

ItemAdding

Indicates an item is being added.

ItemAttachmentAdded

Indicates an attachment was added to the item.

ItemAttachmentAdding

Indicates an attachment is being added to the item.

ItemAttachmentDeleted

Indicates an attachment was removed from the item.

ItemAttachmentDeleting

Indicates an attachment is being removed from the item.

ItemCheckedIn

Indicates an item was checked in.

ItemCheckedOut

Indicates an item was checked out.

ItemCheckingIn

Indicates an item is being checked in.

ItemCheckingOut

Indicates an item is being checked out.

ItemDeleted

Indicates an item was deleted

ItemDeleting

Indicates an item is being deleted.

ItemFileMoved

Indicates a file was moved.

ItemFileMoving

Indicates a file is being moved.

ItemFileTransformed

Indicates a file was converted.

ItemUncheckedOut

Indicates an item is not checked out.

ItemUncheckingOut

Indicates that Undo Checkout is occuring on an item.

ItemUpdated

Indicates an item was updated.

ItemUpdating

Indicates an item is being updated.

SiteDeleted

Indicates a site collection was deleted.

SiteDeleting

Indicates a site collection is being deleted.

WebDeleted

Indicates a site was deleted.

WebDeleting

Indicates a site is being deleted.

WebMoved

Indicates a site was moved.

WebMoving

Indicates a site is being moved.

See Also

Reference

SPEventReceiverType

Concepts

DeploymentManifest Schema