Type Element (Event)

Specifies the type of event for which to register the event handler.

<Type>
</Type>
Attributes

Attribute Description

None

N/A

Child Elements

None

Parent Elements

Occurrences

Minimum: 0

Maximum: 1

Remarks

The Type element contains an integer corresponding to one of the Microsoft.SharePoint.SPEventReceiverType values.

Example

For an example of how this element is used, see Event Registrations.

Tags :


Community Content

Sebastian.Wojciechowski
not only int value

Based on what we see you can also type string value like <Type> ItemAdding </Type>

Plus here is the list of integer values:

public enum SPEventReceiverType
{
    ContextEvent = 32766,
    EmailReceived = 20000,
    FieldAdded = 10101,
    FieldAdding = 101,
    FieldDeleted = 10103,
    FieldDeleting = 103,
    FieldUpdated = 10102,
    FieldUpdating = 102,
    InvalidReceiver = -1,
    ItemAdded = 10001,
    ItemAdding = 1,
    ItemAttachmentAdded = 10007,
    ItemAttachmentAdding = 7,
    ItemAttachmentDeleted = 10008,
    ItemAttachmentDeleting = 8,
    ItemCheckedIn = 10004,
    ItemCheckedOut = 10005,
    ItemCheckingIn = 4,
    ItemCheckingOut = 5,
    ItemDeleted = 10003,
    ItemDeleting = 3,
    ItemFileConverted = 10010,
    ItemFileMoved = 10009,
    ItemFileMoving = 9,
    ItemUncheckedOut = 10006,
    ItemUncheckingOut = 6,
    ItemUpdated = 10002,
    ItemUpdating = 2,
    SiteDeleted = 10201,
    SiteDeleting = 201,
    WebDeleted = 10202,
    WebDeleting = 202,
    WebMoved = 10203,
    WebMoving = 203
}

Tags :

Page view tracker