EventFiringEnabled -Disable Event Firing

If you want to disable the event from firing in an list item updated event receiver, please use the method EventFiringEnabled
as follows.

public class EventFiring : SPItemEventReceiver
{
    public
void DisableEventFiring()
{
    this
.EventFiringEnabled =false;
}
public
void EnableEventFiring()
{
    this
.EventFiringEnabled =true;

}
}

Create an instance of the class and call the method wherever appropriate :)

Happy Share Pointing :-)

Ebook Download
View all
Learn
View all