Timer.OnTick(EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raises the Tick event.
protected:
virtual void OnTick(EventArgs ^ e);
protected virtual void OnTick (EventArgs e);
abstract member OnTick : EventArgs -> unit
override this.OnTick : EventArgs -> unit
Protected Overridable Sub OnTick (e As EventArgs)
Parameters
Remarks
This method is called for each timer tick. It calls any methods that are added through Tick. If you are inheriting from Timer, you can override this method.
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.
Notes to Inheritors
When overriding OnTick(EventArgs) in a derived class, make sure that you call the base class's OnTick(EventArgs) method.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про