Thursday, September 1, 2011

Disabling event firing on SPListItem.Update()

 

If you open the assembly and look at the SPItemEventReceiver class, you see it has a base class called SPEventReceiverBase.  In this class are only 2 methods:  EnableEventFiring() and DisableEventFiring().  Both set SPEventManager.EventFiringDisabled (bool). 

 

Thanks for reading. If you have some other explanation – please post a comment… I’ll be happy to hear.

...HaPpY CoDiNg

Partha (Aurum)

No comments:

Post a Comment