Itemupdating event handler
However, if they rename the folder with Windows Explorer, the event receiver doesn't fire.property is set to "Update".) This enables you to perform a custom routine whenever this event occurs, such as canceling the update operation.Check this bit if set do the processing in Item Updated.
A Details View Update Event Args object is passed to the event handler, which allows you to determine the index of the record being updated and to indicate that the update operation should be canceled.
We'll create a class called Disabled Events Scope: This class is simple and to the point.
We inherit SPItem Event Receiver and IDisposable, SPItem Event Receiver will give us access to the base properties in the event receiver and IDisposable will give us a Dispose method (which comes in handy in a moment).
A List View Update Event Args object is passed to the event handler, which enables you to determine the index of the current item.
It also lets you indicate that the update operation should be canceled.
Search for itemupdating event handler:
Next, in our Dispose method, we simply set the value back and you're done.