Gets or sets the source switch value.
Assembly: System (in System.dll)
Theproperty allows the filtering of messages before the trace source calls the listeners.
The switch is used to check whether trace calls should be generated or ignored. Each trace method calls the ShouldTrace method of the SourceSwitch to determine whether to proceed with the trace. If the call returns true, the listeners are called.
Available since 2.0