SwitchLevelAttribute::SwitchLevelType Property
.NET Framework (current version)
Gets or sets the type that determines whether a trace should be written.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | The set operation failed because the value is null. |
The level property of a switch is not necessarily named Level; for example, the level property of the BooleanSwitch class is Enabled.
The following code example displays the value of the SwitchLevelType property for the BooleanSwitch.
.NET Framework
Available since 2.0
Available since 2.0
Show: