Return to Snippet

Revision: 50143
at August 12, 2011 04:55 by nickaranz


Initial Code
class DisabledItemEventsScope : SPItemEventReceiver, IDisposable
    {
        bool oldValue;

        public DisabledItemEventsScope()
        {
            this.oldValue = base.EventFiringEnabled;
            base.EventFiringEnabled = false;
        }

        #region IDisposable Members

        public void Dispose()
        {
            base.EventFiringEnabled = oldValue;
        }

        #endregion
    }

Initial URL
http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/

Initial Description

                                

Initial Title
Disable Event Firing anywhere SharePoint 2010

Initial Tags
class

Initial Language
C#