Chapter 21. System.Timers

The System.Timers namespace provides the Timer class, which periodically raises an Elapsed event. It is a server-based component designed to be used in a multithreaded environment and is thus more accurate than many other Windows-based timers. Unlike System.Windows.Forms.Timer, a server-based timer is not dependent on a user interface message pump. Figure 21-1 shows the class diagram for this namespace.

The System.Timers namespace

Figure 21-1. The System.Timers namespace

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.