So, within the
public override void ItemUpdating(SPItemEventProperties properties)
method...- The "before" updating value is obtained like this;
var beforeValue = properties.ListItem["Column Name"].ToString();
- The "after" updating value is obtained like this;
var afterValue = properties.AfterProperties[properties.ListItem.Fields["Column Name"].InternalName];
Before making a
beforeValue == afterValue
comparison you may need to type check these values.
No comments:
Post a Comment