SPEventReceiverBase.EventFiringEnabled Property
SharePoint 2010
Gets or sets a value that indicates whether event firing is enabled.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online