SwitchAttribute::SwitchType Property
.NET Framework (current version)
Gets or sets the type of the switch.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | SwitchType is set to null. |
The following code example displays the value of the SwitchType property for all switches used in an assembly. This code example is part of a larger example provided for the TraceSource class.
.NET Framework
Available since 2.0
Available since 2.0
Show: