11 September, 2012

Dismistifying AfterProperties & BeforeProperties

Hi folks, just logged for a fast writing. Everytime I need to code an event receiver I always face the problem of what to use in order to get the Changed Values and Original Values of the event Item.

Guess we all know the:

  • SPItemEventProperties.AfterProperties
  • SPItemEventProperties.BeforeProperties
  • SPItemEventProperties.ListItem
The pain is to understand what values this properties contain in each of the events of a List or Library.
Did some debugging and found nothing new, yet with a small trick in Library events.

Check it out ...