Type Element (Event)
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.

Community Content

not only int value
Added by:Sebastian.Wojciechowski

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
}

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View