Name
BooleanSwitch
Synopsis
This class provides a
simple on/off switch for debugging and tracing.
Consult Enabled
to check if the
switch has been set. You can configure a Boolean switch using the
application configuration file (see Switch
). To
use a BooleanSwitch
,
you must enable tracing or
debugging at compilation time.
Public Class BooleanSwitch : Inherits Switch ' Public Constructors Public Sub New(ByVal displayName As String, ByVal description As String) ' Public Instance Properties Public Property Enabled As Boolean End Class
Hierarchy
System.Object→Switch→ BooleanSwitch
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.