Below table give us the idea on when to use BeforeProperties, AfterProperties, properties.ListItem in event receiver
Hope this helps!!!
Library
|
BeforeProperties
|
AfterProperties
|
properties.ListItem
|
ItemAdding
|
No value
|
No value
|
Null
|
ItemAdded
|
No value
|
No value
|
New value
|
ItemUpdating
|
Original value
|
Changed value
|
Original value
|
ItemUpdated
|
Original value
|
Changed value
|
Changed value
|
ItemDeleting
|
No value
|
No value
|
Original value
|
ItemDeleted
|
No value
|
No value
|
Null
|
Hope this helps!!!
No comments:
Post a Comment