Method SuspendEvents
SuspendEvents()
Temporarily suspends the raising of events.
public virtual void SuspendEvents()
Remarks
This method increments an internal counter to track the suspension state. Events will remain suspended until the counter is decremented to zero by a corresponding call to ResumeEvents(). Ensure that each call to SuspendEvents() is paired with a call to ResumeEvents() to avoid unintended behavior.