SourceSwitch.ShouldTrace Method (TraceEventType)
.NET Framework (current version)
Determines if trace listeners should be called, based on the trace event type.
System (in System.dll)
public bool ShouldTrace(
True if the trace listeners should be called; otherwise, false.
This method is called by the Trace methods in the TraceSource class to determine whether listeners should be called to write a trace.
Application code should not call this method; it is intended to be called only by methods in the TraceSource class.
Return to top
Available since 2.0